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