Skip to content

Commit 0b0b8a4

Browse files
authored
fix: remove migration elements (#1922)
1 parent b83ff57 commit 0b0b8a4

File tree

3 files changed

+1
-222
lines changed

3 files changed

+1
-222
lines changed

src/pages/Profile.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import { truncateAddress } from '@/lib/wallet';
3939

4040
import { GovernancePanel } from './token/GovernancePanel';
4141
import { LaunchIncentivesPanel } from './token/LaunchIncentivesPanel';
42-
import { MigratePanel } from './token/MigratePanel';
4342
import { StakingPanel } from './token/StakingPanel';
4443

4544
const ENS_CHAIN_ID = 1; // Ethereum
@@ -186,8 +185,6 @@ const Profile = () => {
186185
tw="[grid-area:help]"
187186
/>
188187

189-
<MigratePanel tw="[grid-area:migrate]" />
190-
191188
<StakingPanel tw="[grid-area:staking]" />
192189

193190
<$RewardsPanel
@@ -280,7 +277,6 @@ const $MobileProfileLayout = styled.div`
280277
'header header'
281278
'actions actions'
282279
'settings help'
283-
'migrate migrate'
284280
'staking staking'
285281
'rewards fees'
286282
'history history'
@@ -293,7 +289,6 @@ const $MobileProfileLayout = styled.div`
293289
'header header'
294290
'actions actions'
295291
'settings help'
296-
'migrate migrate'
297292
'staking staking'
298293
'rewards fees'
299294
'history history'

src/pages/token/MigratePanel.tsx

Lines changed: 0 additions & 200 deletions
This file was deleted.

src/pages/token/RewardsPage.tsx

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ import { STRING_KEYS } from '@/constants/localization';
99
import { EMPTY_ARR } from '@/constants/objects';
1010
import { AppRoute } from '@/constants/routes';
1111

12-
import { useAccountBalance } from '@/hooks/useAccountBalance';
1312
import { useBreakpoints } from '@/hooks/useBreakpoints';
1413
import { useComplianceState } from '@/hooks/useComplianceState';
15-
import { useEnvConfig } from '@/hooks/useEnvConfig';
1614
import { useStringGetter } from '@/hooks/useStringGetter';
1715
import { useTokenConfigs } from '@/hooks/useTokenConfigs';
1816

@@ -23,12 +21,10 @@ import { DetachedSection } from '@/components/ContentSection';
2321
import { ContentSectionHeader } from '@/components/ContentSectionHeader';
2422
import { TermsOfUseLink } from '@/components/TermsOfUseLink';
2523

26-
import { MustBigNumber } from '@/lib/numbers';
2724
import { orEmptyObj } from '@/lib/typeUtils';
2825

2926
import { GeoblockedPanel } from './GeoblockedPanel';
3027
import { LaunchIncentivesPanel } from './LaunchIncentivesPanel';
31-
import { MigratePanel } from './MigratePanel';
3228
import { RewardHistoryPanel } from './RewardHistoryPanel';
3329
import { RewardsHelpPanel } from './RewardsHelpPanel';
3430
import { RewardsLeaderboardPanel } from './RewardsLeaderboardPanel';
@@ -41,7 +37,7 @@ const RewardsPage = () => {
4137
const navigate = useNavigate();
4238

4339
const { complianceState } = useComplianceState();
44-
const { isTablet, isNotTablet } = useBreakpoints();
40+
const { isTablet } = useBreakpoints();
4541

4642
const { usdcDenom } = useTokenConfigs();
4743

@@ -52,17 +48,6 @@ const RewardsPage = () => {
5248
(a) => a.amount
5349
);
5450

55-
const ethereumChainId = useEnvConfig('ethereumChainId');
56-
const chainId = Number(ethereumChainId);
57-
// v3 token is only on mainnet
58-
const { balance: tokenBalance } = useAccountBalance({
59-
addressOrDenom: chainId === 1 ? import.meta.env.VITE_V3_TOKEN_ADDRESS : undefined,
60-
chainId: 1,
61-
isCosmosChain: false,
62-
});
63-
64-
const showMigratePanel =
65-
import.meta.env.VITE_V3_TOKEN_ADDRESS && isNotTablet && MustBigNumber(tokenBalance).gt(0);
6651
const showGeoblockedPanel = complianceState !== ComplianceStates.FULL_ACCESS;
6752
const showStakingRewardPanel = totalUsdcRewards > 0 && !showGeoblockedPanel;
6853

@@ -99,7 +84,6 @@ const RewardsPage = () => {
9984
</div>
10085
) : (
10186
<$DetachedSection>
102-
{showMigratePanel && <MigratePanel />}
10387
<div tw="flex gap-1.5">
10488
<div tw="flexColumn flex-[2] gap-1.5">
10589
<LaunchIncentivesPanel />

0 commit comments

Comments
 (0)