From 7ff6a9c5c85622d6559c52c0b5c94bc681903451 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Tue, 10 Dec 2024 11:56:50 +0100 Subject: [PATCH] chore: remove oidc UI flag (#8949) --- .../src/component/user/common/AuthOptions/AuthOptions.tsx | 4 +--- frontend/src/interfaces/uiConfig.ts | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/src/component/user/common/AuthOptions/AuthOptions.tsx b/frontend/src/component/user/common/AuthOptions/AuthOptions.tsx index 3d6edb8cc9..ad3c22fb77 100644 --- a/frontend/src/component/user/common/AuthOptions/AuthOptions.tsx +++ b/frontend/src/component/user/common/AuthOptions/AuthOptions.tsx @@ -7,7 +7,6 @@ import { ConditionallyRender } from 'component/common/ConditionallyRender/Condit import type { IAuthOptions } from 'hooks/api/getters/useAuth/useAuthEndpoint'; import { SSO_LOGIN_BUTTON } from 'utils/testIds'; import useQueryParams from 'hooks/useQueryParams'; -import { useUiFlag } from 'hooks/useUiFlag'; interface IAuthOptionProps { options?: IAuthOptions[]; @@ -22,9 +21,8 @@ function addOrOverwriteRedirect(path: string, redirectValue: string): string { const AuthOptions = ({ options }: IAuthOptionProps) => { const { classes: themeStyles } = useThemeStyles(); - const oidcRedirectEnabled = useUiFlag('oidcRedirect'); const query = useQueryParams(); - const redirectPath = (oidcRedirectEnabled && query.get('redirect')) || ''; + const redirectPath = query.get('redirect') || ''; return ( <> diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index 523d82d4af..19263be2b3 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -94,7 +94,6 @@ export type UiFlags = { showUserDeviceCount?: boolean; flagOverviewRedesign?: boolean; licensedUsers?: boolean; - oidcRedirect?: boolean; }; export interface IVersionInfo {