@orderly.network/ui-orders 2.8.12-rc.0 → 2.8.13-alpha.0
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.
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -5533,7 +5533,16 @@ var init_orderList_script = __esm({
|
|
|
5533
5533
|
});
|
|
5534
5534
|
}, [type, t, props.symbol]);
|
|
5535
5535
|
const formattedData = useFormatOrderHistory(data ?? []);
|
|
5536
|
-
const
|
|
5536
|
+
const filteredData = React2.useMemo(() => {
|
|
5537
|
+
const rawData = type !== "tp_sl" /* tp_sl */ ? formattedData : data;
|
|
5538
|
+
if (!props.symbol || !rawData) {
|
|
5539
|
+
return rawData;
|
|
5540
|
+
}
|
|
5541
|
+
return rawData.filter(
|
|
5542
|
+
(order) => order.symbol === props.symbol
|
|
5543
|
+
);
|
|
5544
|
+
}, [type, formattedData, data, props.symbol]);
|
|
5545
|
+
const dataSource = reactApp.useDataTap(filteredData, {
|
|
5537
5546
|
fallbackData: []
|
|
5538
5547
|
}) ?? void 0;
|
|
5539
5548
|
const _pagination = React2.useMemo(() => {
|