11"use client" ;
22
3- import CloseIcon from "@mui/icons-material/Close" ;
43import type { UserWithCoursesAndSubjects } from "common/types" ;
54import { motion , useAnimation } from "framer-motion" ;
65import { useCallback , useEffect , useState } from "react" ;
7- import { MdThumbUp } from "react-icons/md" ;
6+ import { MdClose , MdThumbUp } from "react-icons/md" ;
87import request from "~/api/request" ;
98import { useAboutMe , useRecommended } from "~/api/user" ;
109import { Card } from "~/components/Card" ;
1110import { DraggableCard } from "~/components/DraggableCard" ;
1211import FullScreenCircularProgress from "~/components/common/FullScreenCircularProgress" ;
1312import NoMoreUser from "./components/NoMoreUser" ;
1413import PersonDetailedMenu from "./components/PersonDetailedMenu" ;
14+ import RoundButton from "./components/RoundButton" ;
1515
1616export default function Home ( ) {
1717 const { data, error } = useRecommended ( ) ;
@@ -133,14 +133,14 @@ export default function Home() {
133133 </ motion . div >
134134 </ div >
135135 ) }
136- < div className = "button-container mt-4 mb-4 flex w-full justify-center space-x -8" >
137- < CloseButton
136+ < div className = "mt-2 mb-4 flex w-full justify-around px -8" >
137+ < RoundButton
138138 onclick = { ( ) => handleAction ( "reject" ) }
139- icon = { < CloseIconStyled /> }
139+ icon = { < MdClose className = "text-3xl text-gray-500" /> }
140140 />
141- < GoodButton
141+ < RoundButton
142142 onclick = { ( ) => handleAction ( "accept" ) }
143- icon = { < FavoriteIconStyled /> }
143+ icon = { < MdThumbUp className = "text-3xl text-primary" /> }
144144 />
145145 </ div >
146146 { openDetailedMenu && (
@@ -158,36 +158,6 @@ export default function Home() {
158158 ) ;
159159}
160160
161- interface RoundButtonProps {
162- onclick : ( ) => void ;
163- icon : JSX . Element ;
164- }
165-
166- const CloseButton = ( { onclick, icon } : RoundButtonProps ) => (
167- < button
168- type = "button"
169- onClick = { onclick }
170- className = "btn btn-circle bg-white shadow-md"
171- >
172- { icon }
173- </ button >
174- ) ;
175- const GoodButton = ( { onclick, icon } : RoundButtonProps ) => (
176- < button
177- type = "button"
178- onClick = { onclick }
179- className = "btn btn-circle bg-white shadow-md"
180- >
181- { icon }
182- </ button >
183- ) ;
184-
185- const CloseIconStyled = ( ) => < CloseIcon className = "text-4xl text-gray-500" /> ;
186-
187- const FavoriteIconStyled = ( ) => (
188- < MdThumbUp className = "text-3xl text-primary" />
189- ) ;
190-
191161class Queue < T > {
192162 private store : T [ ] ;
193163 constructor ( initial : T [ ] ) {
0 commit comments