From 2e41b0a34e48e09b5eab853e22db353182e9cafd Mon Sep 17 00:00:00 2001 From: miguel-merlin Date: Tue, 9 Apr 2024 07:44:21 -0400 Subject: [PATCH] feat: Added routing for pages --- src/app/App.tsx | 6 ++++++ src/pages/TeamPage.tsx | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index f645b12..9eb1358 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -1,6 +1,9 @@ import { Routes, Route } from 'react-router-dom' import HomePage from '../pages/HomePage' import BlogPage from '../pages/BlogPage' +import ApplicationsPage from '../pages/ApplicatiosPage' +import BudgetPage from '../pages/BudgetPage' +import TeamPage from '../pages/TeamPage' function App (): JSX.Element { return ( @@ -8,6 +11,9 @@ function App (): JSX.Element { } /> } /> + } /> + } /> + } /> ) diff --git a/src/pages/TeamPage.tsx b/src/pages/TeamPage.tsx index 2513890..27faae2 100644 --- a/src/pages/TeamPage.tsx +++ b/src/pages/TeamPage.tsx @@ -1,7 +1,10 @@ +import { useParams } from 'react-router-dom' + function TeamPage (): JSX.Element { + const { teamName } = useParams() return (
-

Team

+

Team {teamName}

) }