Skip to content

Commit

Permalink
Merge pull request #51 from neil-lobo/neil/fix/accent-key
Browse files Browse the repository at this point in the history
Resolve Missing Key Warning
  • Loading branch information
zhanglun authored Apr 26, 2024
2 parents 2088839 + 631823b commit 023d6fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layout/Setting/Appearance/Accent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export const Accent = () => {

return (
<div className="flex gap-4 items-center">
{ACCENTS.map((accent: { name: string; hsl: string }) => {
return <AccentItem {...accent} active={accent.name === currentTheme} onClick={handleClick} />;
{ACCENTS.map((accent: { name: string; hsl: string }, i) => {
return <AccentItem {...accent} active={accent.name === currentTheme} onClick={handleClick} key={i} />;
})}
</div>
);
Expand Down

0 comments on commit 023d6fc

Please sign in to comment.