Add a key property to menu items

This commit is contained in:
Jackson Harper
2024-02-26 15:15:15 +08:00
parent 5334012a8f
commit fbd873dd2d

View File

@ -17,6 +17,7 @@ export const SettingsDropdown = (): JSX.Element => {
{SETTINGS_SECTION_1.map((item) => {
return (
<DropdownOption
key={`menu1-${item.name}`}
onSelect={() => router.push(item.destination)}
title={item.name}
/>
@ -28,6 +29,7 @@ export const SettingsDropdown = (): JSX.Element => {
{SETTINGS_SECTION_2.map((item) => {
return (
<DropdownOption
key={`menu2-${item.name}`}
onSelect={() => router.push(item.destination)}
title={item.name}
/>