@opexa/portal-components 0.0.1058 → 0.0.1059
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,6 +30,7 @@ export function Wallet({ classNames = {} }) {
|
|
|
30
30
|
}) }), _jsxs("div", { className: twMerge('mt-1.5 flex gap-7xl', classNames.balanceDetailsContainer), children: [_jsxs("div", { children: [_jsx("p", { className: twMerge('text-2xs text-text-secondary-700', classNames.depositBalanceLabel), children: "Deposit Balance" }), _jsx("p", { className: twMerge('text-medium text-text-primary-brand', classNames.depositBalanceAmount), children: formatNumber(depositBalance, {
|
|
31
31
|
currency: localeInfo?.currency.code,
|
|
32
32
|
minDecimalPlaces: 2,
|
|
33
|
+
truncate: false
|
|
33
34
|
}) })] }), _jsxs("div", { children: [_jsx("p", { className: twMerge('text-2xs text-text-secondary-700', classNames.bonusBalanceLabel), children: "Bonus Balance" }), _jsx("p", { className: twMerge('text-medium text-text-primary-brand', classNames.bonusBalanceAmount), children: formatNumber(bonusBalance, {
|
|
34
35
|
currency: localeInfo?.currency.code,
|
|
35
36
|
minDecimalPlaces: 2,
|
|
@@ -66,5 +66,6 @@ export function DepositWithdrawal(props) {
|
|
|
66
66
|
return (_jsxs(_Fragment, { children: [_jsx(DepositWithdrawalPropsProvider, { value: mergedProps, children: _jsx(Dialog.Root, { lazyMount: true, unmountOnExit: true, open: globalStore.depositWithdrawal.open, onOpenChange: handleOpenChange, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+1)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+2)]", children: _jsxs(Dialog.Content, { className: "mx-auto h-full w-full overflow-y-auto px-4 py-3xl lg:h-auto lg:max-h-[80vh] lg:w-[480px] lg:rounded-xl", children: [_jsxs(Dialog.Header, { className: "flex items-center gap-xl", children: [_jsx("div", { className: "flex size-10 items-center justify-center rounded-md border border-border-primary text-gray-700 text-text-secondary-700 shadow-xs", children: _jsx(Wallet02Icon, { className: "size-5" }) }), _jsx(Dialog.Title, { className: "grow font-semibold text-lg", children: "Wallet" }), _jsx(Dialog.Context, { children: () => (_jsx(IconButton, { size: "sm", variant: "outline", colorScheme: "gray", onClick: handleCloseClick, children: _jsx(XIcon, {}) })) })] }), _jsxs(Dialog.Body, { className: "mt-3xl", children: [_jsx("p", { className: "text-center text-sm text-text-secondary-700", children: "Deposit Balance" }), _jsx("p", { className: "text-center font-bold text-3xl leading-tight tracking-tight", children: formatNumber(walletQuery.data?.balance, {
|
|
67
67
|
currency: localeInfo.currency.code,
|
|
68
68
|
minDecimalPlaces: 2,
|
|
69
|
+
truncate: false
|
|
69
70
|
}) }), _jsxs(Tabs.Root, { value: globalStore.depositWithdrawal.tab, onValueChange: handleTabChange, lazyMount: true, unmountOnExit: true, className: "mt-3xl space-y-4xl", children: [_jsxs(Tabs.List, { className: "w-full", children: [_jsx(Tabs.Trigger, { value: "DEPOSIT", className: "grow", children: "Deposit" }), _jsx(Tabs.Trigger, { value: "WITHDRAWAL", className: "grow", children: "Withdrawal" }), _jsx(Tabs.Indicator, {})] }), _jsx(Tabs.Content, { value: "DEPOSIT", className: "space-y-3xl", children: _jsx(Deposit, {}) }), _jsx(Tabs.Content, { value: "WITHDRAWAL", className: "space-y-3xl", children: _jsx(Withdrawal, {}) })] })] })] }) })] }) }) }), _jsx(HasPendingBonuses, {})] }));
|
|
70
71
|
}
|