@opexa/portal-components 0.1.26 → 0.1.27
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.
|
@@ -31,6 +31,8 @@ export function DepositRecordsTable(props) {
|
|
|
31
31
|
...next,
|
|
32
32
|
}), {
|
|
33
33
|
type: enabledDepositTypes?.length === 1 ? enabledDepositTypes[0] : null,
|
|
34
|
+
status: null,
|
|
35
|
+
timestamp: null,
|
|
34
36
|
});
|
|
35
37
|
const localeInfo = useLocaleInfo();
|
|
36
38
|
const { page, hasNextPage, hasPrevPage, next, prev, rows, totalPages, loading, firstPage, } = useInfiniteQueryHelper(useDepositRecordsQuery, {
|
|
@@ -73,14 +75,14 @@ export function DepositRecordsTable(props) {
|
|
|
73
75
|
? { scrollbarThumb: props.className }
|
|
74
76
|
: (props.className ?? {});
|
|
75
77
|
return (_jsxs(_Fragment, { children: [_jsx(TableFilters, { value: {
|
|
76
|
-
timestamp: state.timestamp,
|
|
77
|
-
depositType: state.type,
|
|
78
|
-
depositStatus: state.status,
|
|
78
|
+
timestamp: state.timestamp ?? null,
|
|
79
|
+
depositType: state.type ?? null,
|
|
80
|
+
depositStatus: state.status ?? null,
|
|
79
81
|
}, onChange: (value) => {
|
|
80
82
|
setState({
|
|
81
|
-
type: value.depositType,
|
|
82
|
-
status: value.depositStatus,
|
|
83
|
-
timestamp: value.timestamp,
|
|
83
|
+
type: value.depositType ?? null,
|
|
84
|
+
status: value.depositStatus ?? null,
|
|
85
|
+
timestamp: value.timestamp ?? null,
|
|
84
86
|
});
|
|
85
87
|
firstPage();
|
|
86
88
|
if (searchParams.has('id')) {
|
|
@@ -22,7 +22,7 @@ export function TransactionRecordsTable(props) {
|
|
|
22
22
|
const [state, setState] = useReducer((prev, next) => ({
|
|
23
23
|
...prev,
|
|
24
24
|
...next,
|
|
25
|
-
}), {});
|
|
25
|
+
}), { type: null, timestamp: null });
|
|
26
26
|
const localeInfo = useLocaleInfo();
|
|
27
27
|
const { page, hasNextPage, hasPrevPage, next, prev, rows, totalPages, loading, firstPage, } = useInfiniteQueryHelper(useTransactionRecordsQuery, {
|
|
28
28
|
filter: {
|
|
@@ -47,12 +47,12 @@ export function TransactionRecordsTable(props) {
|
|
|
47
47
|
? { scrollbarThumb: props.className }
|
|
48
48
|
: (props.className ?? {});
|
|
49
49
|
return (_jsxs(_Fragment, { children: [_jsx(TableFilters, { value: {
|
|
50
|
-
timestamp: state.timestamp,
|
|
51
|
-
transactionType: state.type,
|
|
50
|
+
timestamp: state.timestamp ?? null,
|
|
51
|
+
transactionType: state.type ?? null,
|
|
52
52
|
}, onChange: (value) => {
|
|
53
53
|
setState({
|
|
54
|
-
type: value.transactionType,
|
|
55
|
-
timestamp: value.timestamp,
|
|
54
|
+
type: value.transactionType ?? null,
|
|
55
|
+
timestamp: value.timestamp ?? null,
|
|
56
56
|
});
|
|
57
57
|
firstPage();
|
|
58
58
|
}, enabledFilters: {
|
|
@@ -31,6 +31,8 @@ export function WithdrawalRecordsTable(props) {
|
|
|
31
31
|
...next,
|
|
32
32
|
}), {
|
|
33
33
|
type: enabledWithdrawalTypes?.length === 1 ? enabledWithdrawalTypes[0] : null,
|
|
34
|
+
status: null,
|
|
35
|
+
timestamp: null,
|
|
34
36
|
});
|
|
35
37
|
const localeInfo = useLocaleInfo();
|
|
36
38
|
const { page, hasNextPage, hasPrevPage, next, prev, rows, totalPages, loading, firstPage, } = useInfiniteQueryHelper(useWithdrawalRecordsQuery, {
|
|
@@ -73,14 +75,14 @@ export function WithdrawalRecordsTable(props) {
|
|
|
73
75
|
? { scrollbarThumb: props.className }
|
|
74
76
|
: (props.className ?? {});
|
|
75
77
|
return (_jsxs(_Fragment, { children: [_jsx(TableFilters, { value: {
|
|
76
|
-
timestamp: state.timestamp,
|
|
77
|
-
withdrawalType: state.type,
|
|
78
|
-
withdrawalStatus: state.status,
|
|
78
|
+
timestamp: state.timestamp ?? null,
|
|
79
|
+
withdrawalType: state.type ?? null,
|
|
80
|
+
withdrawalStatus: state.status ?? null,
|
|
79
81
|
}, onChange: (value) => {
|
|
80
82
|
setState({
|
|
81
|
-
type: value.withdrawalType,
|
|
82
|
-
status: value.withdrawalStatus,
|
|
83
|
-
timestamp: value.timestamp,
|
|
83
|
+
type: value.withdrawalType ?? null,
|
|
84
|
+
status: value.withdrawalStatus ?? null,
|
|
85
|
+
timestamp: value.timestamp ?? null,
|
|
84
86
|
});
|
|
85
87
|
firstPage();
|
|
86
88
|
if (searchParams.has('id')) {
|