Skip to content

Commit 220c08a

Browse files
authored
Merge pull request #1048 from topcoder-platform/PM-1097_remove-wallet-tabs
PM-1097 - remove wallet tabs
2 parents 2117306 + 5d4aace commit 220c08a

37 files changed

+7
-1909
lines changed

src/apps/wallet/src/home/tabs/WalletTabs.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ import { UserProfile } from '~/libs/core'
55
import { PageTitle, TabsNavbar, TabsNavItem } from '~/libs/ui'
66

77
import { getHashFromTabId, getTabIdFromHash, WalletTabsConfig, WalletTabViews } from './config'
8-
import { PaymentsTab } from './payments'
98
import { WinningsTab } from './winnings'
109
import { HomeTab } from './home'
11-
import { TaxFormsTab } from './tax-forms'
1210
import styles from './WalletTabs.module.scss'
1311

1412
interface WalletHomeProps {
@@ -41,13 +39,9 @@ const WalletTabs: FC<WalletHomeProps> = (props: WalletHomeProps) => {
4139
)}
4240
</PageTitle>
4341

44-
{activeTab === WalletTabViews.withdrawalmethods && <PaymentsTab />}
45-
4642
{activeTab === WalletTabViews.winnings && <WinningsTab profile={props.profile} />}
4743

4844
{activeTab === WalletTabViews.home && <HomeTab profile={props.profile} />}
49-
50-
{activeTab === WalletTabViews.taxforms && <TaxFormsTab profile={props.profile} />}
5145
</div>
5246
)
5347
}

src/apps/wallet/src/home/tabs/config/wallet-tabs-config.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { TabsNavItem } from '~/libs/ui'
33
export enum WalletTabViews {
44
home = '0',
55
winnings = '1',
6-
taxforms = '2',
7-
withdrawalmethods = '3',
86
}
97

108
export const WalletTabsConfig: TabsNavItem[] = [
@@ -16,14 +14,6 @@ export const WalletTabsConfig: TabsNavItem[] = [
1614
id: WalletTabViews.winnings,
1715
title: 'Winnings',
1816
},
19-
{
20-
id: WalletTabViews.withdrawalmethods,
21-
title: 'Withdrawal Methods',
22-
},
23-
{
24-
id: WalletTabViews.taxforms,
25-
title: 'Tax Forms',
26-
},
2717
]
2818

2919
export function getHashFromTabId(tabId: string): string {
@@ -32,10 +22,6 @@ export function getHashFromTabId(tabId: string): string {
3222
return '#home'
3323
case WalletTabViews.winnings:
3424
return '#winnings'
35-
case WalletTabViews.taxforms:
36-
return '#tax-forms'
37-
case WalletTabViews.withdrawalmethods:
38-
return '#withdrawal-methods'
3925
default:
4026
return '#home'
4127
}
@@ -45,10 +31,6 @@ export function getTabIdFromHash(hash: string): string {
4531
switch (hash) {
4632
case '#winnings':
4733
return WalletTabViews.winnings
48-
case '#tax-forms':
49-
return WalletTabViews.taxforms
50-
case '#withdrawal-methods':
51-
return WalletTabViews.withdrawalmethods
5234
default:
5335
return WalletTabViews.home
5436
}

src/apps/wallet/src/home/tabs/home/HomeTab.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ const HomeTab: FC<HomeTabProps> = () => {
7474
/>
7575
}
7676
/>
77+
78+
{/* TODO: check trolley integration? */}
7779
{!walletDetails?.withdrawalMethod.isSetupComplete && (
7880
<InfoRow
7981
title='Withdrawal Method'
@@ -97,7 +99,7 @@ const HomeTab: FC<HomeTabProps> = () => {
9799
/>
98100
)}
99101

100-
{!walletDetails?.taxForm.isSetupComplete && (
102+
{/* {!walletDetails?.taxForm.isSetupComplete && (
101103
<InfoRow
102104
title='Tax Form'
103105
value={walletDetails?.taxForm.isSetupComplete ? 'All set' : <Chip text='Setup Required' />}
@@ -112,7 +114,7 @@ const HomeTab: FC<HomeTabProps> = () => {
112114
/>
113115
}
114116
/>
115-
)}
117+
)} */}
116118
</div>
117119
)}
118120
</div>

src/apps/wallet/src/home/tabs/payments/PaymentsTab.module.scss

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

0 commit comments

Comments
 (0)