From c0a61dec316ca551ab321e5c3ed0cf4e281b5e7c Mon Sep 17 00:00:00 2001 From: Joel Thibault <2701406+jmthibault79@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:05:22 -0400 Subject: [PATCH] [risk=low][no ticket] Restore user admin bypass UI (#8779) --- ui/src/app/components/admin/common-toggle.tsx | 2 +- ui/src/app/pages/admin/user/admin-user-profile.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/app/components/admin/common-toggle.tsx b/ui/src/app/components/admin/common-toggle.tsx index 6e667b3e1cb..f654ec5bab6 100644 --- a/ui/src/app/components/admin/common-toggle.tsx +++ b/ui/src/app/components/admin/common-toggle.tsx @@ -6,7 +6,7 @@ import colors from 'app/styles/colors'; interface CommonToggleProps { name: string; checked: boolean; - onToggle: (boolean) => void; + onToggle: (value: boolean) => void; disabled?: boolean; } export const CommonToggle = (props: CommonToggleProps) => { diff --git a/ui/src/app/pages/admin/user/admin-user-profile.tsx b/ui/src/app/pages/admin/user/admin-user-profile.tsx index 70dfcc86f2c..a438d43370f 100644 --- a/ui/src/app/pages/admin/user/admin-user-profile.tsx +++ b/ui/src/app/pages/admin/user/admin-user-profile.tsx @@ -348,7 +348,7 @@ const ToggleForModule = (props: ToggleProps) => { }} > bypassUpdate({ moduleName, bypassed: !isModuleBypassed })