Fix lib/utils issue (#2151)

This commit is contained in:
Saket Aryan
2025-01-15 09:49:38 -08:00
committed by GitHub
parent 205a03a5f2
commit ee2b5adfc0
13 changed files with 21 additions and 16 deletions
@@ -4,7 +4,7 @@ import { ScrollArea } from "@radix-ui/react-scroll-area";
import { Memory } from "../types";
import GlobalContext from "@/contexts/GlobalContext";
import { useContext, useEffect, useState } from "react";
import { AnimatePresence, motion } from "framer-motion";
import { motion } from "framer-motion";
// eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -73,9 +73,8 @@ const Memories = (props: { isMemoriesExpanded: boolean }) => {
<ScrollArea className="flex-1 p-4">
<motion.div
className="space-y-4"
layout
>
<AnimatePresence mode="popLayout">
{/* <AnimatePresence mode="popLayout"> */}
{memories.map((memory: Memory, index: number) => (
<MemoryItem
key={memory.id}
@@ -83,7 +82,7 @@ const Memories = (props: { isMemoriesExpanded: boolean }) => {
index={index}
/>
))}
</AnimatePresence>
{/* </AnimatePresence> */}
</motion.div>
</ScrollArea>
</Card>