diff --git a/web/app/home/page.tsx b/web/app/home/page.tsx index dcb643ed..fbfaf64e 100644 --- a/web/app/home/page.tsx +++ b/web/app/home/page.tsx @@ -1,9 +1,9 @@ "use client"; import CloseIcon from "@mui/icons-material/Close"; -import FavoriteIcon from "@mui/icons-material/Favorite"; import { motion, useAnimation } from "framer-motion"; import { useCallback, useEffect, useState } from "react"; +import { MdThumbUp } from "react-icons/md"; import request from "~/api/request"; import { useMyID, useRecommended } from "~/api/user"; import { Card } from "~/components/Card"; @@ -33,7 +33,7 @@ export default function Home() { if (displayedUser?.id) request.send(displayedUser.id); }, [displayedUser?.id]); - const onClickCross = useCallback(() => { + const onClickClose = useCallback(() => { setClickedButton("cross"); controls .start({ @@ -102,8 +102,8 @@ export default function Home() { )}
- } /> - } /> + } /> @@ -120,7 +120,16 @@ interface RoundButtonProps { icon: JSX.Element; } -const RoundButton = ({ onclick, icon }: RoundButtonProps) => ( +const CloseButton = ({ onclick, icon }: RoundButtonProps) => ( + +); +const GoodButton = ({ onclick, icon }: RoundButtonProps) => (