Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/apps/wallet/src/home/tabs/WalletTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ import { UserProfile } from '~/libs/core'
import { PageTitle, TabsNavbar, TabsNavItem } from '~/libs/ui'

import { getHashFromTabId, getTabIdFromHash, WalletTabsConfig, WalletTabViews } from './config'
import { PaymentsTab } from './payments'
import { WinningsTab } from './winnings'
import { HomeTab } from './home'
import { TaxFormsTab } from './tax-forms'
import styles from './WalletTabs.module.scss'

interface WalletHomeProps {
Expand Down Expand Up @@ -41,13 +39,9 @@ const WalletTabs: FC<WalletHomeProps> = (props: WalletHomeProps) => {
)}
</PageTitle>

{activeTab === WalletTabViews.withdrawalmethods && <PaymentsTab />}

{activeTab === WalletTabViews.winnings && <WinningsTab profile={props.profile} />}

{activeTab === WalletTabViews.home && <HomeTab profile={props.profile} />}

{activeTab === WalletTabViews.taxforms && <TaxFormsTab profile={props.profile} />}
</div>
)
}
Expand Down
18 changes: 0 additions & 18 deletions src/apps/wallet/src/home/tabs/config/wallet-tabs-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { TabsNavItem } from '~/libs/ui'
export enum WalletTabViews {
home = '0',
winnings = '1',
taxforms = '2',
withdrawalmethods = '3',
}

export const WalletTabsConfig: TabsNavItem[] = [
Expand All @@ -16,14 +14,6 @@ export const WalletTabsConfig: TabsNavItem[] = [
id: WalletTabViews.winnings,
title: 'Winnings',
},
{
id: WalletTabViews.withdrawalmethods,
title: 'Withdrawal Methods',
},
{
id: WalletTabViews.taxforms,
title: 'Tax Forms',
},
]

export function getHashFromTabId(tabId: string): string {
Expand All @@ -32,10 +22,6 @@ export function getHashFromTabId(tabId: string): string {
return '#home'
case WalletTabViews.winnings:
return '#winnings'
case WalletTabViews.taxforms:
return '#tax-forms'
case WalletTabViews.withdrawalmethods:
return '#withdrawal-methods'
default:
return '#home'
}
Expand All @@ -45,10 +31,6 @@ export function getTabIdFromHash(hash: string): string {
switch (hash) {
case '#winnings':
return WalletTabViews.winnings
case '#tax-forms':
return WalletTabViews.taxforms
case '#withdrawal-methods':
return WalletTabViews.withdrawalmethods
default:
return WalletTabViews.home
}
Expand Down
6 changes: 4 additions & 2 deletions src/apps/wallet/src/home/tabs/home/HomeTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ const HomeTab: FC<HomeTabProps> = () => {
/>
}
/>

{/* TODO: check trolley integration? */}
{!walletDetails?.withdrawalMethod.isSetupComplete && (
<InfoRow
title='Withdrawal Method'
Expand All @@ -97,7 +99,7 @@ const HomeTab: FC<HomeTabProps> = () => {
/>
)}

{!walletDetails?.taxForm.isSetupComplete && (
{/* {!walletDetails?.taxForm.isSetupComplete && (
<InfoRow
title='Tax Form'
value={walletDetails?.taxForm.isSetupComplete ? 'All set' : <Chip text='Setup Required' />}
Expand All @@ -112,7 +114,7 @@ const HomeTab: FC<HomeTabProps> = () => {
/>
}
/>
)}
)} */}
</div>
)}
</div>
Expand Down
125 changes: 0 additions & 125 deletions src/apps/wallet/src/home/tabs/payments/PaymentsTab.module.scss

This file was deleted.

Loading