diff --git a/.env b/.env index 1c5ff054d..7ce24f8c8 100644 --- a/.env +++ b/.env @@ -9,7 +9,6 @@ VITE_TOKEN=SQT VITE_STABLE_TOKEN=USDC.e VITE_STABLE_TOKEN_ADDRESS=0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174 VITE_FLEXPLAN_ENABLED=true -VITE_STUDIO_ENABLED=false VITE_NETWORK=mainnet VITE_GQL_PROXY=https://gql-proxy.subquery.network VITE_AUTH_URL=https://kepler-auth.subquery.network diff --git a/.env.staging b/.env.staging index d36f722cb..df221405c 100644 --- a/.env.staging +++ b/.env.staging @@ -9,7 +9,6 @@ VITE_TOKEN=SQT VITE_STABLE_TOKEN=USDC.e VITE_STABLE_TOKEN_ADDRESS=0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174 VITE_FLEXPLAN_ENABLED=true -VITE_STUDIO_ENABLED=false VITE_NETWORK=mainnet VITE_GQL_PROXY=https://gql-proxy.subquery.network VITE_AUTH_URL=https://kepler-auth.subquery.network diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index e0d174127..5cdf84d93 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -4,7 +4,6 @@ import * as React from 'react'; import { useNavigate } from 'react-router-dom'; import { AccountActions } from '@components/AccountActions'; -import { useStudioEnabled } from '@hooks'; import { ConnectButton } from '@rainbow-me/rainbowkit'; import { Button, Header as SubqlHeader } from '@subql/components'; import { entryLinks, externalAppLinks } from '@utils/links'; @@ -38,21 +37,17 @@ export interface AppNavigation { export const Header: React.FC = () => { const { address: account } = useAccount(); const navigate = useNavigate(); - const studioEnabled = useStudioEnabled(); const calEntryLinks = React.useMemo(() => { - if (!studioEnabled) { - return entryLinks.map((entry) => { - if (entry.key === 'explorer') { - return { - ...entry, - dropdown: undefined, - }; - } - return entry; - }); - } - return entryLinks; - }, [studioEnabled]); + return entryLinks.map((entry) => { + if (entry.key === 'explorer') { + return { + ...entry, + dropdown: undefined, + }; + } + return entry; + }); + }, []); return (