Skip to content

Commit

Permalink
Cleanup and refactoring pages and routes
Browse files Browse the repository at this point in the history
  • Loading branch information
DercilioFontes committed Dec 29, 2022
1 parent 12c82bb commit a04b2bc
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 26 deletions.
Binary file removed preview-1.png
Binary file not shown.
Binary file removed preview-2.png
Binary file not shown.
Binary file removed public/favicon.ico
Binary file not shown.
9 changes: 3 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import React from 'react';
import { Routes, Route } from 'react-router-dom';
import { Routes, Route, Navigate } from 'react-router-dom';
import { IntlProvider } from 'react-intl';
import { CustomProvider } from 'rsuite';
import enUS from 'rsuite/locales/en_GB';
import locales from './locales';
import Frame from './components/Frame';
import HistogramPage from './pages/histogram';
import Error404Page from './pages/authentication/404';
import Error500Page from './pages/authentication/500';
import Error404Page from './pages/404';
import { appNavs } from './config';
import Info from './pages/info';

Expand All @@ -17,11 +16,9 @@ const App = () => {
<CustomProvider locale={enUS}>
<Routes>
<Route path="/" element={<Frame navs={appNavs} />}>
<Route index element={<HistogramPage />} />
<Route index element={<Navigate to="/histogram" />} />
<Route path="histogram" element={<HistogramPage />} />
<Route path="info" element={<Info />} />
<Route path="error-404" element={<Error404Page />} />
<Route path="error-500" element={<Error500Page />} />
</Route>
<Route path="*" element={<Error404Page />} />
</Routes>
Expand Down
1 change: 0 additions & 1 deletion src/constants/index.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
16 changes: 0 additions & 16 deletions src/pages/authentication/500/Error500.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/pages/authentication/500/index.ts

This file was deleted.

0 comments on commit a04b2bc

Please sign in to comment.