From 9f2b23a699994ce2fe79f088a7310d3800b14082 Mon Sep 17 00:00:00 2001 From: "j.krol" Date: Mon, 18 Mar 2024 20:10:35 +0100 Subject: [PATCH 01/64] Create notifications page --- frontend/src/components/Navbar.tsx | 2 ++ frontend/src/main.tsx | 2 ++ frontend/src/pages/NotificationsPage.tsx | 12 ++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 frontend/src/pages/NotificationsPage.tsx diff --git a/frontend/src/components/Navbar.tsx b/frontend/src/components/Navbar.tsx index 7de56ca8..8dd1bde2 100644 --- a/frontend/src/components/Navbar.tsx +++ b/frontend/src/components/Navbar.tsx @@ -3,6 +3,7 @@ import LogoSVG from "/logo.svg"; import { useUser } from "../helpers/UserProvider"; import { useState } from "react"; import { + faBell, faMagnifyingGlass, faUser, faUsers, @@ -32,6 +33,7 @@ function Navbar(props: NavbarProps) { }; const navLinks = [ + { to: "/notifications", text: "Notifications", icon: faBell }, { to: "/search", text: "Search", icon: faMagnifyingGlass }, { to: "/profile", text: "My Profile", icon: faUser }, { to: "/friends", text: "Friends", icon: faUsers }, diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index e5af0e23..819cfd3f 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -12,6 +12,7 @@ import ProfilePage from "./pages/ProfilePage.tsx"; import RegisterPage from "./pages/RegisterPage.tsx"; import SearchPage from "./pages/SearchPage.tsx"; import VideoCallPage from "./pages/VideoCallPage.tsx"; +import NotificationsPage from "./pages/NotificationsPage.tsx"; import "./styles/styles.scss"; @@ -37,6 +38,7 @@ ReactDOM.createRoot(document.getElementById("root")!).render( } /> } /> } /> + } /> } /> diff --git a/frontend/src/pages/NotificationsPage.tsx b/frontend/src/pages/NotificationsPage.tsx new file mode 100644 index 00000000..02d86a65 --- /dev/null +++ b/frontend/src/pages/NotificationsPage.tsx @@ -0,0 +1,12 @@ +import Navbar from "../components/Navbar"; +import Footer from "../components/Footer"; +function NotificationsPage() { + return ( + <> + +
notifications page
+