Skip to content

Commit

Permalink
Merge pull request #18 from ananjaemin/17-404오류-page-제작
Browse files Browse the repository at this point in the history
17 404오류 page 제작
  • Loading branch information
ananjaemin committed Nov 2, 2022
2 parents 4960427 + a9768dd commit bf6fb74
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ import { ToastContainer } from 'react-toastify';

import 'react-toastify/dist/ReactToastify.css';
import { Navbar } from './components';
import {
MainPage,
SuccessPage,
DownloadPage,
DeletePage,
FileListPage,
NotFoundPage,
} from './pages';
import { MainPage, SuccessPage, DownloadPage, DeletePage, FileListPage, ApiPage } from './pages';
import { store } from './state/store';

Expand Down Expand Up @@ -42,6 +50,7 @@ export const App: React.FC = () => (
<Route path="/delete" element={<DeletePage />} />
<Route path="/filelist" element={<FileListPage />} />
<Route path="/api/*" element={<ApiPage />} />
<Route path="*" element={<NotFoundPage />} />
</Route>
</Routes>
</Provider>
Expand Down
2 changes: 2 additions & 0 deletions src/pages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ export * from './download';
export * from './delete';
export * from './filelist';
export * from './api';
export * from './notfound';

5 changes: 5 additions & 0 deletions src/pages/notfound/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import React from 'react';

import * as S from './styled';

export const NotFoundPage: React.FC = () => <S.NotFoundPage>404</S.NotFoundPage>;
3 changes: 3 additions & 0 deletions src/pages/notfound/styled.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import styled from '@emotion/styled';

export const NotFoundPage = styled.div``;

0 comments on commit bf6fb74

Please sign in to comment.