Skip to content

Commit

Permalink
Added new pages and added those pages to the router
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravik-TH committed Feb 11, 2025
1 parent 2fc4902 commit a5e9912
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frontend/web-app/src/Components/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import AboutPage from "../Pages/AboutPage";
import FaqPage from "../Pages/FaqPage";
import ErrorPage from "../Pages/ErrorPage";
import NavBar from "./NavBar";
import SignUpPage from "../Pages/SignUpPage";
import DisplayPage from "../Pages/DisplayPage";

const router = createBrowserRouter([
{
Expand All @@ -15,6 +17,14 @@ const router = createBrowserRouter([
path: '/login',
element: <LoginPage/>,
},
{
path: '/signup',
element: <SignUpPage />,
},
{
path: '/display',
element: <DisplayPage />
},
{
path: '/',
element: <NavBar />,
Expand Down
9 changes: 9 additions & 0 deletions frontend/web-app/src/Pages/DisplayPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

function DisplayPage() {
return (
<div>DisplayPage</div>
)
}

export default DisplayPage
9 changes: 9 additions & 0 deletions frontend/web-app/src/Pages/SignUpPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

function SignUpPage() {
return (
<div>SignUpPage</div>
)
}

export default SignUpPage

0 comments on commit a5e9912

Please sign in to comment.