mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 08:54:13 +00:00
fix: add key to categories
This commit is contained in:
parent
a5d2ba45f8
commit
38c11f124e
1 changed files with 3 additions and 7 deletions
|
|
@ -13,15 +13,11 @@ export function Categories({ categories }: CategoriesProps) {
|
||||||
return (
|
return (
|
||||||
<AnimatePresence initial={false}>
|
<AnimatePresence initial={false}>
|
||||||
{categories.map((category, index) => (
|
{categories.map((category, index) => (
|
||||||
<>
|
<div key={category.id}>
|
||||||
<Category
|
<Category functional={category.id !== 'favorites'} {...category} />
|
||||||
functional={category.id !== 'favorites'}
|
|
||||||
{...category}
|
|
||||||
key={category.id}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{index === 3 && <Donate />}
|
{index === 3 && <Donate />}
|
||||||
</>
|
</div>
|
||||||
))}
|
))}
|
||||||
</AnimatePresence>
|
</AnimatePresence>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue