diff --git a/src/components/common/FileListBox/index.tsx b/src/components/common/FileListBox/index.tsx index 63e0640..b86b857 100644 --- a/src/components/common/FileListBox/index.tsx +++ b/src/components/common/FileListBox/index.tsx @@ -6,11 +6,17 @@ type FileListBoxProps = { filename: string; size: string; LastModified: any; + click: () => void; }; -export const FileListBox: React.FC = ({ filename, size, LastModified }) => ( - - 파일이름: {filename} / 크기:{size} / 업로드날짜:{LastModified.getFullYear()}- - {LastModified.getMonth() + 1}-{LastModified.getDate()} +export const FileListBox: React.FC = ({ + filename, + size, + LastModified, + click, +}) => ( + + 파일이름: {filename} / 크기:{size} / 업로드날짜:{LastModified.year}-{LastModified.month}- + {LastModified.day} ); diff --git a/src/pages/download/index.tsx b/src/pages/download/index.tsx index 2d93319..f18640d 100644 --- a/src/pages/download/index.tsx +++ b/src/pages/download/index.tsx @@ -1,13 +1,48 @@ -import React from 'react'; +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux'; +import { useNavigate } from 'react-router-dom'; +import { toast } from 'react-toastify'; import { Button } from '../../components'; +import { RootState } from '../../state/reducers'; +import { getFileSize, getDate } from '../../utils'; import * as S from './styled'; -export const DownloadPage: React.FC = () => ( - - -