mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-22 16:46:28 +01:00
Better keys
This commit is contained in:
parent
a8cf7879a2
commit
a1b0d6e3bd
1 changed files with 7 additions and 3 deletions
|
@ -101,7 +101,7 @@ function Shortcuts() {
|
|||
{formattedShortcuts.map(
|
||||
({ id, path, title, subtitle, icon }, i) => {
|
||||
return (
|
||||
<li key={i + title}>
|
||||
<li key={`${i}-${id}-${title}-${subtitle}-${path}`}>
|
||||
<Link
|
||||
class={subtitle ? 'has-subtitle' : ''}
|
||||
to={path}
|
||||
|
@ -170,9 +170,13 @@ function Shortcuts() {
|
|||
</button>
|
||||
}
|
||||
>
|
||||
{formattedShortcuts.map(({ path, title, subtitle, icon }, i) => {
|
||||
{formattedShortcuts.map(({ id, path, title, subtitle, icon }, i) => {
|
||||
return (
|
||||
<MenuLink to={path} key={i + title} class="glass-menu-item">
|
||||
<MenuLink
|
||||
to={path}
|
||||
key={`${i}-${id}-${title}-${subtitle}-${path}`}
|
||||
class="glass-menu-item"
|
||||
>
|
||||
<Icon icon={icon} size="l" />{' '}
|
||||
<span class="menu-grow">
|
||||
<span>
|
||||
|
|
Loading…
Reference in a new issue