Skip to content

Commit

Permalink
fix: document is not defined (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
xingwanying authored Jul 2, 2024
2 parents 3118b0b + 6f9d279 commit 58d9750
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/components/FullPageSkeleton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import Lottie from 'lottie-react';
'use client';
import dynamic from 'next/dynamic';

import peterCatWalkAnimation from '../public/loading.json';

const Lottie = dynamic(() => import('lottie-react'), { ssr: false });

const FullPageSkeleton = () => {
return (
<div className="fixed top-0 left-0 right-0 bottom-0 z-50 flex justify-center items-center bg-white bg-opacity-75">
Expand Down

0 comments on commit 58d9750

Please sign in to comment.