From fd2550cf95981e8b6e7d82f28128e3ee43aba586 Mon Sep 17 00:00:00 2001 From: Sinan Date: Sat, 24 Aug 2024 07:49:44 +0530 Subject: [PATCH] navbar validation updated --- client/app/staff/layout.tsx | 5 ++++ client/app/staff/page.tsx | 57 ++++++++++++++++++++++++------------ client/components/NavBar.tsx | 2 +- 3 files changed, 44 insertions(+), 20 deletions(-) diff --git a/client/app/staff/layout.tsx b/client/app/staff/layout.tsx index 30398bc0..4cf49023 100644 --- a/client/app/staff/layout.tsx +++ b/client/app/staff/layout.tsx @@ -1,8 +1,13 @@ import React from "react"; import SideBar from "@/components/SideBar"; +import { Metadata } from "next"; interface AdminLayoutWrapperProps { children: React.ReactNode; +}; + +export const metadata:Metadata = { + title:"Dashboard" } const AdminLayoutWrapper: React.FC = ({ children }) => { diff --git a/client/app/staff/page.tsx b/client/app/staff/page.tsx index 6a25c02f..ea1d41fc 100644 --- a/client/app/staff/page.tsx +++ b/client/app/staff/page.tsx @@ -1,28 +1,47 @@ -import React from 'react'; +import React from "react"; const Dashboard = () => { return ( -
-
-
- {[...new Array(4)].map((_, i) => ( -
- ))} -
-
- {[...new Array(2)].map((_, i) => ( -
- ))} +
+
+

Dashboard

+
+
+
+
-
+ ); }; export default Dashboard; + + + + + + + + + + + +// import React from "react"; + +// const Dashboard = () => { +// return ( +//
+//
+//

Dashboard

+//
+//
+//
+ +//
+//
+//
+// ); +// }; + +// export default Dashboard; diff --git a/client/components/NavBar.tsx b/client/components/NavBar.tsx index 516689c9..bed39550 100644 --- a/client/components/NavBar.tsx +++ b/client/components/NavBar.tsx @@ -19,7 +19,7 @@ import { usePathname } from "next/navigation"; export const NavBar = () => { const path = usePathname(); - if(path.includes('signup')|| path.includes('staff')|| path.includes('signin') || []){ + if(path.includes('signup')|| path.includes('staff')|| path.includes('signin') ){ return null; }