From 3ce8816b9acb42f7ffb685b72356cfec175a14c6 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 18 May 2024 13:05:28 -0600 Subject: [PATCH] Update auth settings UI (#11421) --- .../components/settings/Authentication.tsx | 25 +++++++++++++------ web/src/pages/Settings.tsx | 4 +-- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/web/src/components/settings/Authentication.tsx b/web/src/components/settings/Authentication.tsx index c33d2314e..0d28957fc 100644 --- a/web/src/components/settings/Authentication.tsx +++ b/web/src/components/settings/Authentication.tsx @@ -12,6 +12,9 @@ import CreateUserDialog from "../overlay/CreateUserDialog"; import { toast } from "sonner"; import DeleteUserDialog from "../overlay/DeleteUserDialog"; import { Card } from "../ui/card"; +import { HiTrash } from "react-icons/hi"; +import { FaUserEdit } from "react-icons/fa"; +import { LuPlus } from "react-icons/lu"; export default function Authentication() { const { data: config } = useSWR("config"); @@ -86,16 +89,18 @@ export default function Authentication() {
- - Users - -
+
+ + Users +
@@ -106,24 +111,28 @@ export default function Authentication() {
{u.username}
-
+
diff --git a/web/src/pages/Settings.tsx b/web/src/pages/Settings.tsx index 590bc2096..1141763ef 100644 --- a/web/src/pages/Settings.tsx +++ b/web/src/pages/Settings.tsx @@ -41,7 +41,7 @@ export default function Settings() { "masks / zones", "motion tuner", "debug", - "authentication", + "users", ] as const; type SettingsType = (typeof settingsViews)[number]; @@ -171,7 +171,7 @@ export default function Settings() { setUnsavedChanges={setUnsavedChanges} /> )} - {page == "authentication" && } + {page == "users" && }
{confirmationDialogOpen && (