Skip to content

Commit

Permalink
chore: updated types
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienne-deriv committed Oct 2, 2024
1 parent dba539e commit 973c613
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/AccountSwitcher/index.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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<HydraBEApps>({
useGrowthbookGetFeatureValue<TOAuth2EnabledAppList>({
featureFlag: 'hydra_be',
});

Expand Down

0 comments on commit 973c613

Please sign in to comment.