Skip to content

Commit

Permalink
fix: document is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Jul 2, 2024
1 parent 3118b0b commit 6f9d279
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 6f9d279

Please sign in to comment.