From 97f354a2713f92b25831c93a7c1cbe09cb0bf475 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Mon, 21 Mar 2022 20:34:05 -0700 Subject: [PATCH] client: fix downloading zip files --- client/components/post-page/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,