diff --git a/client/components/post-page/index.tsx b/client/components/post-page/index.tsx index 9ecf720a..8d846101 100644 --- a/client/components/post-page/index.tsx +++ b/client/components/post-page/index.tsx @@ -5,7 +5,7 @@ import Page from "@geist-ui/core/dist/page" import Button from "@geist-ui/core/dist/button" import Text from "@geist-ui/core/dist/text" import DocumentComponent from '@components/document' -import clientZip from 'client-zip' +import { downloadZip } from 'client-zip' import styles from './post-page.module.css' import type { Post, ThemeProps } from "@lib/types" @@ -17,7 +17,7 @@ type Props = ThemeProps & { const PostPage = ({ post, changeTheme, theme }: Props) => { const download = async () => { - const blob = await clientZip.downloadZip(post.files.map((file: any) => { + const blob = await downloadZip(post.files.map((file: any) => { return { name: file.title, input: file.content,