From 973c613d6210559935113b8437f74fbc9d3f04f7 Mon Sep 17 00:00:00 2001 From: Adrienne Rio Date: Wed, 2 Oct 2024 10:37:38 +0800 Subject: [PATCH] chore: updated types --- src/components/AccountSwitcher/index.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/AccountSwitcher/index.tsx b/src/components/AccountSwitcher/index.tsx index 46148d20..4d22a835 100644 --- a/src/components/AccountSwitcher/index.tsx +++ b/src/components/AccountSwitcher/index.tsx @@ -1,5 +1,5 @@ import React, { useState, useRef } from 'react'; -import { useOAuth2 } from '@deriv-com/auth-client'; +import { useOAuth2, TOAuth2EnabledAppList } from '@deriv-com/auth-client'; import { isNotDemoCurrency } from '@site/src/utils'; import useLogout from '@site/src/hooks/useLogout'; import useGrowthbookGetFeatureValue from '@site/src/hooks/useGrowthbookGetFeatureValue'; @@ -12,13 +12,11 @@ import styles from './account_switcher.module.scss'; import SearchButton from '../SearchButton'; import Translate from '@docusaurus/Translate'; -type HydraBEApps = { - enabled_for: number[]; -}[]; + const AccountSwitcher = () => { const [OAuth2EnabledApps, OAuth2EnabledAppsInitialised] = - useGrowthbookGetFeatureValue({ + useGrowthbookGetFeatureValue({ featureFlag: 'hydra_be', });