Fix Build Errors (#2235)
This commit is contained in:
@@ -3,7 +3,7 @@ import { Card } from "@/components/ui/card";
|
|||||||
import { ScrollArea } from "@radix-ui/react-scroll-area";
|
import { ScrollArea } from "@radix-ui/react-scroll-area";
|
||||||
import { Memory } from "../types";
|
import { Memory } from "../types";
|
||||||
import GlobalContext from "@/contexts/GlobalContext";
|
import GlobalContext from "@/contexts/GlobalContext";
|
||||||
import { useContext, useEffect, useState } from "react";
|
import { useContext } from "react";
|
||||||
import { motion } from "framer-motion";
|
import { motion } from "framer-motion";
|
||||||
|
|
||||||
|
|
||||||
@@ -40,14 +40,6 @@ const Memories = (props: { isMemoriesExpanded: boolean }) => {
|
|||||||
const { isMemoriesExpanded } = props;
|
const { isMemoriesExpanded } = props;
|
||||||
const { memories } = useContext(GlobalContext);
|
const { memories } = useContext(GlobalContext);
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
const [prevMemories, setPrevMemories] = useState<Memory[]>([]);
|
|
||||||
|
|
||||||
// Track memory positions for animation
|
|
||||||
useEffect(() => {
|
|
||||||
setPrevMemories(memories);
|
|
||||||
}, [memories]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
className={`border-l rounded-none flex flex-col transition-all duration-300 ${
|
className={`border-l rounded-none flex flex-col transition-all duration-300 ${
|
||||||
|
|||||||
Reference in New Issue
Block a user