From 03948ddae155066ca1c3745cf782110cede29cd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aron=20Sch=C3=BCler?= Date: Sun, 3 Mar 2024 21:12:14 +0100 Subject: [PATCH] feat: add placeholder for Goals page --- src/router.tsx | 3 ++- src/views/Goals.tsx | 9 +++++++++ src/views/Layout.tsx | 14 +++++++++----- 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 src/views/Goals.tsx diff --git a/src/router.tsx b/src/router.tsx index ad64b12..c96e78a 100644 --- a/src/router.tsx +++ b/src/router.tsx @@ -6,6 +6,7 @@ import { RedirectIfNotLoggedIn, RedirectIfSignedIn, } from "./utils/RedirectIfNotLoggedIn"; +import { Goals } from "./views/Goals"; export const router = createBrowserRouter([ { @@ -30,7 +31,7 @@ export const router = createBrowserRouter([ }, { path: "goals", - Component: () =>

Goals

, + Component: Goals, }, ], }, diff --git a/src/views/Goals.tsx b/src/views/Goals.tsx new file mode 100644 index 0000000..892a19d --- /dev/null +++ b/src/views/Goals.tsx @@ -0,0 +1,9 @@ +export const Goals = () => ( +
+
+
+

Goals

+
+
+
+); diff --git a/src/views/Layout.tsx b/src/views/Layout.tsx index c62dbae..e0dfe4a 100644 --- a/src/views/Layout.tsx +++ b/src/views/Layout.tsx @@ -24,11 +24,15 @@ export const Layout = ({ children }: PropsWithChildren) => { -
- Dashboard - Goals -
- {isLoggedIn && } + {isLoggedIn && ( + <> +
+ Dashboard + Goals +
+ + + )} {children}