diff --git a/apps/client/layouts/adminLayout.tsx b/apps/client/layouts/adminLayout.tsx
index eef95c3d2..c293c198f 100644
--- a/apps/client/layouts/adminLayout.tsx
+++ b/apps/client/layouts/adminLayout.tsx
@@ -76,6 +76,7 @@ export default function AdminLayout({ children }: any) {
))}
+
{children}
diff --git a/apps/client/layouts/newLayout.tsx b/apps/client/layouts/newLayout.tsx
index f74b6bb77..f1cb3f079 100644
--- a/apps/client/layouts/newLayout.tsx
+++ b/apps/client/layouts/newLayout.tsx
@@ -13,7 +13,7 @@ import Link from "next/link";
import { useRouter } from "next/router";
import { Fragment, useEffect, useState } from "react";
-import { ContextMenu } from "@radix-ui/themes";
+import { Button, ContextMenu } from "@radix-ui/themes";
import useTranslation from "next-translate/useTranslation";
import { useUser } from "../store/session";
@@ -33,7 +33,6 @@ export default function NewLayout({ children }: any) {
const [sidebarOpen, setSidebarOpen] = useState(false);
const [tab, setTab] = useState("unread");
- const [currentPath, setCurrentPath] = useState();
if (!user) {
location.push("/auth/login");
@@ -76,6 +75,39 @@ export default function NewLayout({ children }: any) {
// },
];
+ const admin_settings = [
+ {
+ name: t("sl_users"),
+ href: "/admin/users/internal",
+ current: location.pathname === "/admin/users/internal",
+ },
+ {
+ name: t("sl_clients"),
+ href: "/admin/clients",
+ current: location.pathname === "/admin/clients",
+ },
+ {
+ name: "Email Queues",
+ href: "/admin/email-queues",
+ current: location.pathname === "/admin/email-queues",
+ },
+ {
+ name: "Webhooks",
+ href: "/admin/webhooks",
+ current: location.pathname === "/admin/webhooks",
+ },
+ {
+ name: "Outbound Emails",
+ href: "/admin/email",
+ current: location.pathname === "/admin/email",
+ },
+ {
+ name: "SSO",
+ href: "/admin/sso",
+ current: location.pathname === "/admin/sso",
+ },
+ ];
+
// async function getQueues() {
// const res = await fetch(
// `/api/v1/email-queues/all`,
@@ -115,46 +147,7 @@ export default function NewLayout({ children }: any) {
// useEffect(() => {
// getQueues();
- // }, [user]);
-
- // useEffect(() => {
- // location.push(`${locale}/${location.pathname}`);
- // }, [user, location]);
-
- // const handleKeyPress = useCallback((event: any, location: any) => {
- // console.log(location);
- // if (
- // document.activeElement!.tagName !== "INPUT" &&
- // document.activeElement!.tagName !== "TEXTAREA" &&
- // !document.activeElement!.className.includes("ProseMirror")
- // ) {
- // switch (event.key) {
- // case "c":
- // location.push("/new");
- // break;
- // case "h":
- // location.push("/");
- // break;
- // case "n":
- // location.push("/notebook");
- // break;
- // case "t":
- // location.push("/tickets");
- // break;
- // case "a":
- // location.push("/admin");
- // break;
- // case "o":
- // location.push("/tickets/open");
- // break;
- // case "f":
- // location.push("/tickets/closed");
- // break;
- // default:
- // break;
- // }
- // }
- // }, []);
+ // }, [user])
function handleKeyPress(event: any) {
const pathname = location.pathname;
@@ -260,12 +253,13 @@ export default function NewLayout({ children }: any) {
{/* Sidebar component, swap this element with another sidebar if you like */}