diff --git a/apps/client/layouts/newLayout.tsx b/apps/client/layouts/newLayout.tsx index cdd823a23..dd3d66a10 100644 --- a/apps/client/layouts/newLayout.tsx +++ b/apps/client/layouts/newLayout.tsx @@ -54,7 +54,6 @@ export default function NewLayout({ children }: any) { const { loading, user, fetchUserProfile } = useUser(); const locale = user ? user.language : "en"; - const [queues, setQueues] = useState([]); const [keypressdown, setKeyPressDown] = useState(false); const { t, lang } = useTranslation("peppermint"); @@ -75,13 +74,6 @@ export default function NewLayout({ children }: any) { } const navigation = [ - // { - // name: t("create_ticket"), - // href: `/${locale}/new`, - // icon: PlusIcon, - // current: location.pathname === "/new" ? true : false, - // initial: "c", - // }, { name: t("sl_dashboard"), href: `/${locale}/`, @@ -95,17 +87,12 @@ export default function NewLayout({ children }: any) { icon: FileText, current: location.pathname === "/documents" ? true : false, initial: "d", + internal: true }, - // { - // name: "Email Queues", - // current: false, - // icon: InboxStackIcon, - // href: `/${locale}/tickets`, - // children: queues, - // inital: null, - // }, ]; + console.log(user) + function handleKeyPress(event: any) { const pathname = location.pathname; @@ -360,7 +347,7 @@ export default function NewLayout({ children }: any) { setKeyPressDown={setKeyPressDown} /> {navigation.map((item: any) => ( -