Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit ca9d48f

Browse files
Added route to 404 Page (#94)
* Added Route to 404 component * npm run format executed * npm run format executed
1 parent bfb4f94 commit ca9d48f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const useStyles = makeStyles(() =>
4242
'-webkit-font-smoothing': 'antialiased',
4343
'-moz-osx-font-smoothing': 'grayscale',
4444
height: '100%',
45-
width: '100%',
45+
width: '100%'
4646
},
4747
body: {
4848
height: '100%',

src/Routes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import LoadingScreen from 'src/components/LoadingScreen';
99
import CoursesView from 'src/views/pages/CoursesView';
1010
import ProfileView from 'src/views/pages/ProfileView';
1111
import ApplicationsView from 'src/views/pages/ApplicationsView';
12+
import Error404View from 'src/views/pages/Error404View';
1213

1314
import MachineLearningView from 'src/views/pages/Courses/MachineLearningView';
1415
import AlgoJavaView from 'src/views/pages/Courses/AlgoJavaView';
@@ -132,6 +133,8 @@ const renderRoutes = () => (
132133
</MainLayout>
133134
)}
134135
/>
136+
137+
<Route component={Error404View} />
135138
</Switch>
136139
</Suspense>
137140
);

0 commit comments

Comments
 (0)