Skip to content

Commit

Permalink
🎨 Fix missing key for components in map
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Aug 16, 2024
1 parent 0b6f0ba commit 1bb07f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/ModeToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ function ModeToggle<T extends string>({
return (
<div className={clsx('btn-group', 'btn-group-toggle', className)}>
{modes.map(({value, label}) => (
<label className={clsx('btn', 'btn-sm', btnClassName, {active: value === currentMode})}>
<label
key={value}
className={clsx('btn', 'btn-sm', btnClassName, {active: value === currentMode})}
>
<input
type="radio"
name={name}
Expand Down

0 comments on commit 1bb07f0

Please sign in to comment.