feat: upgrade nextjs
This commit is contained in:
1 parent
750d5b12c8
commit
29f6de300b
16 files changed
+365
-344
No files matched your search
@@ -2,13 +2,15 @@
|
||||
|
||||
import useFavorites from '@/app/(site)/favorites/useFavorites';
|
||||
import List from '@/components/Movie/List';
|
||||
import useMounted from '@/hooks/useMounted';
|
||||
|
||||
export default function Container() {
|
||||
const { pages } = useFavorites();
|
||||
const isMounted = useMounted();
|
||||
|
||||
if (!pages[0]?.results?.length)
|
||||
if (isMounted && !pages[0]?.results?.length)
|
||||
return (
|
||||
<div className='h-40 w-full flex items-center justify-center text-xl text-muted-foreground'>
|
||||
<div className='h-40 w-full flex items-center text-center justify-center text-xl text-muted-foreground'>
|
||||
There are no items in your favorites list
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user