File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11"use client" ;
22
33import CloseIcon from "@mui/icons-material/Close" ;
4- import { UserWithCoursesAndSubjects } from "common/types" ;
4+ import type { UserWithCoursesAndSubjects } from "common/types" ;
55import { motion , useAnimation } from "framer-motion" ;
66import { useCallback , useEffect , useState } from "react" ;
77import { MdThumbUp } from "react-icons/md" ;
@@ -21,9 +21,9 @@ export default function Home() {
2121 } = useMyID ( ) ;
2222
2323 const [ _ , rerender ] = useState ( { } ) ;
24- const [ recommended , setRecommended ] = useState < Queue < UserWithCoursesAndSubjects > > (
25- ( ) => new Queue ( [ ] ) ,
26- ) ;
24+ const [ recommended , setRecommended ] = useState <
25+ Queue < UserWithCoursesAndSubjects >
26+ > ( ( ) => new Queue ( [ ] ) ) ;
2727 useEffect ( ( ) => {
2828 if ( data ) setRecommended ( new Queue ( data ) ) ;
2929 } , [ data ] ) ;
You can’t perform that action at this time.
0 commit comments