Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚨 Fix console errors #40

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 54 additions & 58 deletions src/components/Community.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,56 +24,56 @@ import whiteDiscord from "../assets/socials/discord.svg";
import { useEffect, useState } from "react";

const imageOptions = [
"./Rho.png",
"./Naninna.avif",
"./Alice.avif",
"./Alice.jpg",
"./farah.png",
"./Farah.avif",
"./Liga.avif",
"./Vanaric.avif",
"./Fei.avif",
"./Tuwu.avif",
"./Touge.avif",
"./Josh (1).jpg",
"./JG.avif",
"./Vixpora.jpg",
"./Imp.avif",
"./Adam.avif",
"./Liga.jpg",
"./Touge.png",
"./Shin (1).avif",
"./Palis.png",
"./Imp.jpg",
"./JG.png",
"./Nate.avif",
"./Suhate.jpg",
"./Neetori.jpeg",
"./Tuwu.jpg",
"./Cloudy.jpg",
"./Vanaric.png",
"./Fei.jpg",
"./Vixpora.avif",
"./Pawwao.png",
"./Adam.png",
"./Nate.jpg",
"./Rho.avif",
"./Naninna.jpg",
"./Shiomu.avif",
"./Pawwao.avif",
"./Josh.jpg",
"./Jess (1).jpg",
"./shiomu.png",
"./stuwu.avif",
"./Suhate.avif",
"./stuwu.png",
"./Jess.jpg",
"./Cloudy.avif",
"./Benangbaja.avif",
"./Benanbaja.jpg",
"./Shin.avif",
"./Palis.avif",
"./Neetori.avif",
"Rho.png",
"Naninna.avif",
"Alice.avif",
"Alice.jpg",
"farah.png",
"Farah.avif",
"Liga.avif",
"Vanaric.avif",
"Fei.avif",
"Tuwu.avif",
"Touge.avif",
"Josh (1).jpg",
"JG.avif",
"Vixpora.jpg",
"Imp.avif",
"Adam.avif",
"Liga.jpg",
"Touge.png",
"Shin (1).avif",
"Palis.png",
"Imp.jpg",
"JG.png",
"Nate.avif",
"Suhate.jpg",
"Neetori.jpeg",
"Tuwu.jpg",
"Cloudy.jpg",
"Vanaric.png",
"Fei.jpg",
"Vixpora.avif",
"Pawwao.png",
"Adam.png",
"Nate.jpg",
"Rho.avif",
"Naninna.jpg",
"Shiomu.avif",
"Pawwao.avif",
"Josh.jpg",
"Jess (1).jpg",
"shiomu.png",
"stuwu.avif",
"Suhate.avif",
"stuwu.png",
"Jess.jpg",
"Cloudy.avif",
"Benangbaja.avif",
"Benanbaja.jpg",
"Shin.avif",
"Palis.avif",
"Neetori.avif",
];

interface UwuType {
Expand Down Expand Up @@ -227,9 +227,8 @@ const Community = () => {
const secondIndex =
(startIndex + index * 2 + 1) % imageOptions.length;
return (
<>
<div key={index}>
<div
key={firstIndex}
className={className}
style={{
top: `${uwu.top * 100}dvh`,
Expand All @@ -246,7 +245,6 @@ const Community = () => {
/>
</div>
<div
key={secondIndex}
className={className}
style={{
top: `${uwu.top * 100}dvh`,
Expand All @@ -262,7 +260,7 @@ const Community = () => {
alt="uwu"
/>
</div>
</>
</div>
);
})}

Expand All @@ -276,9 +274,8 @@ const Community = () => {
const secondIndex =
(startIndex + index * 2 + 1) % imageOptions.length;
return (
<>
<div key={index}>
<div
key={firstIndex}
className={className}
style={{
top: `${uwu.top * 100}dvh`,
Expand All @@ -295,7 +292,6 @@ const Community = () => {
/>
</div>
<div
key={secondIndex}
className={className}
style={{
top: `${uwu.top * 100}dvh`,
Expand All @@ -311,7 +307,7 @@ const Community = () => {
alt="uwu"
/>
</div>
</>
</div>
);
})}

Expand Down
Loading