From d66cefa75dc688285d390960a5244f41de36fc2b Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Thu, 13 Oct 2022 14:53:49 +0600 Subject: [PATCH] import Signature dynamic --- src/components/FIleCard/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/FIleCard/index.tsx b/src/components/FIleCard/index.tsx index 892469c9..97b2ea63 100644 --- a/src/components/FIleCard/index.tsx +++ b/src/components/FIleCard/index.tsx @@ -1,13 +1,17 @@ import s from "./filecard.module.css" import Image from "next/image" +import dynamic from "next/dynamic" import { FileTokenData, Sign } from "@/types" import { size, ext } from "@/lib/file" import { getResizedUrl } from "@/lib/image" -import { Signature } from "./Signature" import Link from "next/link" import { Box } from "@/ui/Box" +const Signature = dynamic(import("./Signature").then(m => m.Signature), { + ssr: false, +}) + export type FileCardProps = FileTokenData & { sign?: Sign }