diff --git a/src/apps/wallet/src/home/tabs/winnings/WinningsTab.tsx b/src/apps/wallet/src/home/tabs/winnings/WinningsTab.tsx index f50550f62..ea3a25a95 100644 --- a/src/apps/wallet/src/home/tabs/winnings/WinningsTab.tsx +++ b/src/apps/wallet/src/home/tabs/winnings/WinningsTab.tsx @@ -414,6 +414,7 @@ const ListView: FC = (props: ListViewProps) => { ; selectedPayments?: { [paymentId: string]: Winning }; currentPage: number; @@ -85,6 +86,8 @@ const PaymentsTable: React.FC = (props: PaymentTableProps) => const total = calculateTotal() + const isPaymeDisabled = !total || total < props.minWithdrawAmount + return ( <>
@@ -191,15 +194,33 @@ const PaymentsTable: React.FC = (props: PaymentTableProps) =>
)} - + + ) diff --git a/src/apps/wallet/src/lib/models/WalletDetails.ts b/src/apps/wallet/src/lib/models/WalletDetails.ts index f81cac0d8..8f11c8510 100644 --- a/src/apps/wallet/src/lib/models/WalletDetails.ts +++ b/src/apps/wallet/src/lib/models/WalletDetails.ts @@ -23,4 +23,5 @@ export interface WalletDetails { primaryCurrency?: string | null; estimatedFees?: string | null; taxWithholdingPercentage?: string | null; + minWithdrawAmount: number; } diff --git a/src/libs/ui/lib/components/tooltip/Tooltip.tsx b/src/libs/ui/lib/components/tooltip/Tooltip.tsx index 489f444b8..7351b0830 100644 --- a/src/libs/ui/lib/components/tooltip/Tooltip.tsx +++ b/src/libs/ui/lib/components/tooltip/Tooltip.tsx @@ -25,6 +25,7 @@ interface TooltipProps { children?: ReactNode triggerOn?: 'click' | 'hover' strategy?: 'absolute' | 'fixed' + disableTooltip?: boolean } function wrapComponents(el: ReactNode, disableWrap?: boolean): ReactNode { @@ -56,16 +57,18 @@ const Tooltip: FC = (props: TooltipProps) => { return ( <> {renderTrigger()} - - {props.content} - + {!props.disableTooltip && ( + + {props.content} + + )} ) }