diff --git a/src/components/layout/header/header.tsx b/src/components/layout/header/header.tsx index 1b7b43f8..a055c646 100644 --- a/src/components/layout/header/header.tsx +++ b/src/components/layout/header/header.tsx @@ -1,6 +1,6 @@ import clsx from 'clsx'; import { observer } from 'mobx-react-lite'; -import { standalone_routes } from '@/components/shared'; +import { generateOAuthURL, standalone_routes } from '@/components/shared'; import Button from '@/components/shared_ui/button'; import useActiveAccount from '@/hooks/api/account/useActiveAccount'; import { useOauth2 } from '@/hooks/auth/useOauth2'; @@ -33,7 +33,7 @@ const AppHeader = observer(() => { const currency = getCurrency?.(); const { localize } = useTranslations(); - const { isSingleLoggingIn } = useOauth2(); + const { isOAuth2Enabled, isSingleLoggingIn } = useOauth2(); const renderAccountSection = () => { if (isAuthorizing || isSingleLoggingIn) { @@ -114,27 +114,31 @@ const AppHeader = observer(() => {