From 52f17d5a00d7a5011d11045cabd92eec55e851f6 Mon Sep 17 00:00:00 2001 From: Emily Neighbour Date: Mon, 12 May 2025 14:00:03 +0100 Subject: [PATCH] emily user to edit admin --- src/app/layout.tsx | 26 +++++++++++++------------- src/components/navbar.tsx | 3 --- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index e714fa3..4c384d7 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -5,8 +5,8 @@ import "./globals.css"; import { action, createStore, StoreProvider } from "easy-peasy"; import { Inter } from "next/font/google"; -import { StoreModel } from '@appTypes/StoreModel'; -import Navbar from '@components/Navbar'; +import { StoreModel } from "@appTypes/StoreModel"; +import Navbar from "@components/Navbar"; const inter = Inter({ subsets: ["latin"], @@ -23,17 +23,17 @@ const store = createStore({ conversionRates: { GBP: 0.85, USD: 1.14, EUR: 1 }, tickers: { GBP: "£", USD: "$", EUR: "€" }, }, - user: null, - // user: { - // id: 123456, - // createdAt: new Date(8.64e15), - // email: "tim.howitz@dyson.com", - // passwordHash: "", - // name: "Tim Howitz", - // role: "ADMIN", - // scientist: undefined, - // purchasedArtifacts: [], - // }, + // user: null, + user: { + id: 123456, + createdAt: new Date(8.64e15), + email: "emily.neighbour@dyson.com", + passwordHash: "", + name: "Emily Neighbour", + role: "ADMIN", + scientist: undefined, + purchasedArtifacts: [], + }, }); export default function RootLayout({ diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx index af3804c..d676cb7 100644 --- a/src/components/navbar.tsx +++ b/src/components/navbar.tsx @@ -108,7 +108,6 @@ export default function Navbar({}: // currencySelector,
- {pathname.includes("shop") && (
)} - {user && (user.role === "SCIENTIST" || user.role === "ADMIN") && (
@@ -140,7 +138,6 @@ export default function Navbar({}: // currencySelector,
)} -