Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nisum-scorecard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Venkaiah Naidu Singamchetty
nisum-scorecard
Commits
28ff7934
Commit
28ff7934
authored
Mar 17, 2024
by
Venkaiah Naidu Singamchetty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pagenotfound added
parent
d2d96f83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
App.js
src/App.js
+2
-0
PageNotFound.jsx
src/pages/pagenotfound/PageNotFound.jsx
+11
-0
No files found.
src/App.js
View file @
28ff7934
...
...
@@ -4,6 +4,7 @@ import Dashboard from './pages/dashboard';
import
Layout
from
'./pages/layout'
;
import
Reports
from
'./pages/reports'
;
import
'./App.css'
;
import
PageNotFound
from
'./pages/pagenotfound/PageNotFound'
;
function
App
()
{
return
(
...
...
@@ -12,6 +13,7 @@ function App() {
<
Route
path
=
'/'
element
=
{
<
Home
/>
}
/
>
<
Route
path
=
"/dashboard"
element
=
{
<
Layout
><
Dashboard
/><
/Layout>}/
>
<
Route
path
=
"/viewreportee/:id"
element
=
{
<
Layout
><
Reports
/><
/Layout>}/
>
<
Route
path
=
"/*"
element
=
{
<
Layout
><
PageNotFound
/><
/Layout>}/
>
<
/Routes
>
<
/BrowserRouter
>
);
...
...
src/pages/pagenotfound/PageNotFound.jsx
0 → 100644
View file @
28ff7934
import
React
,
{
memo
}
from
'react'
;
const
PageNotFound
=
memo
(()
=>
{
return
(
<
div
className=
"w-full h-full"
>
<
p
className=
"text-center align-middle mt-14 mb-14 text-red-500"
>
Page Not Found
</
p
>
</
div
>
);
});
export
default
PageNotFound
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment