@opexa/portal-components 0.0.1053 → 0.0.1055
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.
|
@@ -26,6 +26,7 @@ export function Wallet({ classNames = {} }) {
|
|
|
26
26
|
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: twMerge('mt-3 overflow-hidden rounded-xl border border-border-primary', classNames.walletBalanceContainer), children: [_jsxs("div", { className: "bg-bg-tertiary p-xl", children: [_jsx("div", { className: twMerge('text-sm text-text-secondary-700', classNames.totalBalanceLabel), children: "Total Balance" }), _jsx("div", { className: twMerge('font-bold text-3xl', classNames.totalBalanceAmount), children: formatNumber(totalBalance, {
|
|
27
27
|
currency: localeInfo?.currency.code,
|
|
28
28
|
minDecimalPlaces: 2,
|
|
29
|
+
truncate: false
|
|
29
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, {
|
|
30
31
|
currency: localeInfo?.currency.code,
|
|
31
32
|
minDecimalPlaces: 2,
|
|
@@ -68,14 +68,12 @@ export function TransactionRecordsTable(props) {
|
|
|
68
68
|
}) })] }), _jsx(Table.Cell, { className: "!py-1", children: formatNumber(data.amount, {
|
|
69
69
|
currency: localeInfo.currency.code,
|
|
70
70
|
minDecimalPlaces: 2,
|
|
71
|
-
maxDecimalPlaces: 2,
|
|
72
71
|
}) }), _jsx(Table.Cell, { className: "!py-1", children: formatNumber(data.currentBalance, {
|
|
73
72
|
currency: localeInfo.currency.code,
|
|
74
73
|
minDecimalPlaces: 2,
|
|
75
|
-
|
|
74
|
+
truncate: false
|
|
76
75
|
}) }), _jsx(Table.Cell, { className: "!py-1", children: formatNumber(data.currentBonusBalance, {
|
|
77
76
|
currency: localeInfo.currency.code,
|
|
78
77
|
minDecimalPlaces: 2,
|
|
79
|
-
maxDecimalPlaces: 2,
|
|
80
78
|
}) }), _jsx(Table.Cell, { className: "!py-1", children: data.referenceNumber })] }, data.id))) })] }) }), _jsxs("div", { className: "flex items-center justify-between gap-lg px-4 py-3", children: [_jsx(IconButton, { size: "xs", variant: "outline", colorScheme: "gray", disabled: !hasPrevPage || loading, onClick: () => prev(), children: _jsx(ChevronLeftIcon, { className: "size-5" }) }), _jsxs("p", { className: "font-medium text-sm text-text-secondary-700", children: ["Page ", page, " of ", totalPages] }), _jsx(IconButton, { size: "xs", variant: "outline", colorScheme: "gray", disabled: !hasNextPage || loading, onClick: () => next(), children: _jsx(ChevronRightIcon, { className: "size-5" }) })] })] }))] }));
|
|
81
79
|
}
|