Skip to content

Commit

Permalink
fix: remove claim button from mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
belopash committed May 16, 2024
1 parent a56b161 commit cc90332
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/pages/AssetsPage/Assets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ import { Card } from '@components/Card';
import { CopyToClipboard } from '@components/CopyToClipboard';
import { HelpTooltip } from '@components/HelpTooltip';
import { Loader } from '@components/Loader';
import { demoFeaturesEnabled } from '@hooks/demoFeaturesEnabled';
import { WalletIcon } from '@icons/WalletIcon';
import { NetworkPageTitle } from '@layouts/NetworkLayout';
import { useAccount } from '@network/useAccount';
import { useContracts } from '@network/useContracts';
import { NetworkName, useSubsquidNetwork } from '@network/useSubsquidNetwork';

import { ClaimButton } from './ClaimButton';

Expand All @@ -23,6 +25,7 @@ export function MyAssets() {
const { SQD_TOKEN } = useContracts();
const { isConnected } = useAccount();
const { openConnectModal } = useConnectModal();
const { network } = useSubsquidNetwork();

const data = useMemo(
() => [
Expand Down Expand Up @@ -78,7 +81,12 @@ export function MyAssets() {

return (
<Box>
<NetworkPageTitle title="My Assets" endAdornment={<ClaimButton />} />
<NetworkPageTitle
title="My Assets"
endAdornment={
demoFeaturesEnabled() || network === NetworkName.Testnet ? <ClaimButton /> : null
}
/>

{isConnected ? (
isLoading ? (
Expand Down

0 comments on commit cc90332

Please sign in to comment.