@opexa/portal-components 0.0.279 → 0.0.280
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.
|
@@ -72,7 +72,7 @@ export function BetRecords__client(props) {
|
|
|
72
72
|
}),
|
|
73
73
|
...(state.status && {
|
|
74
74
|
status: {
|
|
75
|
-
|
|
75
|
+
in: state.status === 'SETTLED' ? ['SETTLED'] : ['CANCELLED', 'STARTED'],
|
|
76
76
|
},
|
|
77
77
|
}),
|
|
78
78
|
...(state.timestamp && {
|
|
@@ -140,7 +140,7 @@ export function BetRecords__client(props) {
|
|
|
140
140
|
e.stopPropagation();
|
|
141
141
|
}, children: "Clear" }) })) : (_jsx(Select.Indicator, { asChild: true, children: _jsx(ChevronDownIcon, {}) })) })) })] }), _jsx(Portal, { children: _jsx(Select.Positioner, { children: _jsx(Select.Content, { children: _jsx(Select.ItemGroup, { children: providerCollection.items.map((provider) => (_jsxs(Select.Item, { item: provider, children: [_jsx(Select.ItemText, { children: provider.name }), _jsx(Select.ItemIndicator, { asChild: true, children: _jsx(CheckIcon, {}) })] }, provider.id))) }) }) }) })] }), _jsxs(Select.Root, { collection: statusCollection, value: state.status ? [state.status] : [], onValueChange: (details) => {
|
|
142
142
|
const value = z
|
|
143
|
-
.enum(
|
|
143
|
+
.enum(['SETTLED', 'NOT_SETTLED'])
|
|
144
144
|
.safeParse(details.value.at(0)).data;
|
|
145
145
|
firstPage();
|
|
146
146
|
setState({
|
|
@@ -185,13 +185,8 @@ export function BetRecords__client(props) {
|
|
|
185
185
|
delimiter: capitalize.delimiters.UNDERSCORE,
|
|
186
186
|
}) }) }) }), _jsx(Table.Cell, { className: "!py-1", children: data.game.name }), _jsx(Table.Cell, { className: "!py-1", children: data.vendorRoundId })] }, 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: "text-text-secondary-700 text-sm font-medium", children: ["Page ", page, " of ", totalPages] }), _jsx(IconButton, { size: "xs", variant: "outline", colorScheme: "gray", disabled: !hasNextPage || loading, onClick: () => next(), children: _jsx(ChevronRightIcon, { className: "size-5" }) })] })] }))] }));
|
|
187
187
|
}
|
|
188
|
-
const BET_RECORD_STATUSES = [
|
|
189
|
-
'CANCELLED',
|
|
190
|
-
'SETTLED',
|
|
191
|
-
'STARTED',
|
|
192
|
-
];
|
|
193
188
|
const statusCollection = createListCollection({
|
|
194
|
-
items:
|
|
189
|
+
items: ['SETTLED', 'NOT_SETTLED'],
|
|
195
190
|
itemToValue: (item) => item,
|
|
196
191
|
itemToString: (item) => capitalize(item, {
|
|
197
192
|
delimiter: capitalize.delimiters.UNDERSCORE,
|