From 7f53cff2cd225f69470f0cd86d8e27aef4f81469 Mon Sep 17 00:00:00 2001 From: SandraBergstrom Date: Mon, 26 Jun 2023 17:37:22 +0000 Subject: [PATCH] #15 Add routes to feed and likes --- src/App.js | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 6a47e09..cd6cb6a 100644 --- a/src/App.js +++ b/src/App.js @@ -7,14 +7,48 @@ import SignUpForm from "./pages/auth/SignUpForm"; import LoginForm from "./pages/auth/LoginForm"; import PostCreateForm from "./pages/posts/PostCreateForm"; import PostPage from "./pages/posts/PostPage"; +import PostsPage from "./pages/posts/PostsPage"; +import { useCurrentUser } from "./contexts/CurrentUserContext"; function App() { + const currentUser = useCurrentUser(); + const profile_id = currentUser?.profile_id || ""; + return (
-

Home Page

} /> + ( + + )} + /> + ( + + )} + /> + ( + + )} + /> } /> } /> } />