fix: prevent lottie from ssr
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import Lottie from "react-lottie-player";
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
const Lottie = dynamic(() => import("react-lottie-player"), { ssr: false });
|
||||
|
||||
type IconProps = {
|
||||
isPlaying: boolean;
|
||||
|
||||
Reference in New Issue
Block a user