Skip to content

Commit

Permalink
key
Browse files Browse the repository at this point in the history
  • Loading branch information
ia7ck committed Mar 16, 2024
1 parent 22dd2cd commit 63423ea
Showing 1 changed file with 31 additions and 27 deletions.
58 changes: 31 additions & 27 deletions app/abc337_e/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,40 +109,44 @@ export default function ABC337_E() {
const friends =
index === 0 ? (
<div className="grid grid-flow-col place-items-center">
{row.map((_) => (
<UserIcon className="inline-block h-10 w-10" />
{row.map((_, i) => (
// biome-ignore lint/suspicious/noArrayIndexKey: uum...
<UserIcon key={i} className="inline-block h-10 w-10" />
))}
</div>
) : null;
return (
<>
// biome-ignore lint/suspicious/noArrayIndexKey: uum...
<div key={index}>
{friends}
<div className="grid grid-flow-col place-items-center">
{row
.toReversed()
.map((served) =>
served ? (
<CheckCircleIcon24Solid
className={clsx(
"inline-block h-10 w-10",
spoiled.success && index + 1 === spoiled.data
? "text-indigo-600"
: "text-gray-800",
)}
/>
) : (
<CheckCircleIconOutline
className={clsx(
"inline-block h-10 w-10",
spoiled.success && index + 1 === spoiled.data
? "text-indigo-200"
: "text-gray-200",
)}
/>
),
)}
{row.toReversed().map((served, i) =>
served ? (
<CheckCircleIcon24Solid
// biome-ignore lint/suspicious/noArrayIndexKey: uum...
key={i}
className={clsx(
"inline-block h-10 w-10",
spoiled.success && index + 1 === spoiled.data
? "text-indigo-600"
: "text-gray-800",
)}
/>
) : (
<CheckCircleIconOutline
// biome-ignore lint/suspicious/noArrayIndexKey: uum...
key={i}
className={clsx(
"inline-block h-10 w-10",
spoiled.success && index + 1 === spoiled.data
? "text-indigo-200"
: "text-gray-200",
)}
/>
),
)}
</div>
</>
</div>
);
})}
</div>
Expand Down

0 comments on commit 63423ea

Please sign in to comment.