fix(mod): add keys to categories list

This commit is contained in:
enes 2024-12-16 13:14:05 +01:00
parent 3f237ab2af
commit 615b39a8d8

View File

@ -553,6 +553,7 @@ const Body = ({
return ( return (
<ReactRouterLink <ReactRouterLink
className='IBMSMSMBSSCategoriesBoxItem' className='IBMSMSMBSSCategoriesBoxItem'
key={`category-${i}`}
target='_blank' target='_blank'
to={{ to={{
pathname: getGamePageRoute(game), pathname: getGamePageRoute(game),
@ -563,9 +564,12 @@ const Body = ({
</ReactRouterLink> </ReactRouterLink>
) )
}) })
.reduce((prev, curr) => [ .reduce((prev, curr, i) => [
prev, prev,
<div className='IBMSMSMBSSCategoriesBoxSeparator'> <div
key={`separator-${i}`}
className='IBMSMSMBSSCategoriesBoxSeparator'
>
<p>&gt;</p> <p>&gt;</p>
</div>, </div>,
curr curr