@opexa/portal-components 0.0.433 → 0.0.434
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
|
+
equal: state.status,
|
|
76
76
|
},
|
|
77
77
|
}),
|
|
78
78
|
...(state.timestamp && {
|
|
@@ -139,9 +139,7 @@ export function BetRecords__client(props) {
|
|
|
139
139
|
}, children: [_jsxs(Select.Trigger, { className: "w-full lg:w-[14rem]", children: [_jsx(Select.ValueText, { placeholder: props.placeholder?.gameProvider ?? 'Game Vendor' }), _jsx(Select.Context, { children: (api) => (_jsx(_Fragment, { children: api.value.length ? (_jsx(Select.ClearTrigger, { asChild: true, children: _jsx("span", { onClick: (e) => {
|
|
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
|
-
const value = z
|
|
143
|
-
.enum(STATUSES)
|
|
144
|
-
.safeParse(details.value.at(0)).data;
|
|
142
|
+
const value = z.enum(STATUSES).safeParse(details.value.at(0)).data;
|
|
145
143
|
firstPage();
|
|
146
144
|
setState({
|
|
147
145
|
status: value ?? null,
|
|
@@ -185,7 +183,7 @@ export function BetRecords__client(props) {
|
|
|
185
183
|
delimiter: capitalize.delimiters.UNDERSCORE,
|
|
186
184
|
}) }) }) }), _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: "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" }) })] })] }))] }));
|
|
187
185
|
}
|
|
188
|
-
const STATUSES = ['
|
|
186
|
+
const STATUSES = ['STARTED', 'SETTLED', 'CANCELLED'];
|
|
189
187
|
const statusCollection = createListCollection({
|
|
190
188
|
items: STATUSES,
|
|
191
189
|
itemToValue: (item) => item,
|