mirror of
https://github.com/remvze/moodist.git
synced 2025-10-19 04:50:36 -04:00
fix: add key to categories
This commit is contained in:
parent
a5d2ba45f8
commit
38c11f124e
@ -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…
x
Reference in New Issue
Block a user