mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add a key property to menu items
This commit is contained in:
parent
5334012a8f
commit
fbd873dd2d
1 changed files with 2 additions and 0 deletions
|
|
@ -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}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue