From 2255c20f2b9352365d754caab55927f7d04500d1 Mon Sep 17 00:00:00 2001 From: anjaemin Date: Mon, 21 Nov 2022 00:49:32 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20getFileSize=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/checkpw/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/checkpw/index.tsx b/src/pages/checkpw/index.tsx index ea674fe..4a48f38 100644 --- a/src/pages/checkpw/index.tsx +++ b/src/pages/checkpw/index.tsx @@ -8,7 +8,7 @@ import { bindActionCreators } from 'redux'; import { FileBox, Button, SkeletonUI } from '../../components'; import { actionCreators } from '../../state'; -import { getDate } from '../../utils'; +import { getDate, getFileSize } from '../../utils'; import * as S from './styled'; export const CheckPasswordPage: React.FC = () => { @@ -68,7 +68,7 @@ export const CheckPasswordPage: React.FC = () => { setLoading(false); setFileProps({ filename: res.data.filename, - size: res.data.size, + size: getFileSize(res.data.size), uploadDate: getDate(res.data.uploadDate), }); })