@orderly.network/portfolio 2.11.3-rc.0 → 2.12.0-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 +36 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +18 -18
package/dist/index.js
CHANGED
|
@@ -845,9 +845,24 @@ var init_assetHistory = __esm({
|
|
|
845
845
|
init_assetHistory_widget();
|
|
846
846
|
}
|
|
847
847
|
});
|
|
848
|
-
var useFundingHistoryColumns;
|
|
848
|
+
var SymbolBadge, useFundingHistoryColumns;
|
|
849
849
|
var init_column2 = __esm({
|
|
850
850
|
"src/pages/overview/funding/column.tsx"() {
|
|
851
|
+
SymbolBadge = (props) => {
|
|
852
|
+
const { brokerId, brokerName, brokerNameRaw } = hooks.useBadgeBySymbol(
|
|
853
|
+
props.symbol
|
|
854
|
+
);
|
|
855
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
856
|
+
ui.Text.symbolBadge,
|
|
857
|
+
{
|
|
858
|
+
badge: brokerName ?? brokerId ?? void 0,
|
|
859
|
+
fullName: brokerNameRaw,
|
|
860
|
+
className: "oui-cursor-pointer",
|
|
861
|
+
showIcon: true,
|
|
862
|
+
children: props.symbol
|
|
863
|
+
}
|
|
864
|
+
);
|
|
865
|
+
};
|
|
851
866
|
useFundingHistoryColumns = () => {
|
|
852
867
|
const { t } = i18n.useTranslation();
|
|
853
868
|
const columns = React12.useMemo(() => {
|
|
@@ -856,10 +871,7 @@ var init_column2 = __esm({
|
|
|
856
871
|
title: t("common.symbol"),
|
|
857
872
|
dataIndex: "symbol",
|
|
858
873
|
width: 80,
|
|
859
|
-
|
|
860
|
-
textProps: {
|
|
861
|
-
showIcon: true
|
|
862
|
-
}
|
|
874
|
+
render: (value) => /* @__PURE__ */ jsxRuntime.jsx(SymbolBadge, { symbol: value })
|
|
863
875
|
},
|
|
864
876
|
{
|
|
865
877
|
title: t("common.time"),
|
|
@@ -987,9 +999,22 @@ var init_fundingHistory_ui = __esm({
|
|
|
987
999
|
};
|
|
988
1000
|
}
|
|
989
1001
|
});
|
|
1002
|
+
var SymbolBadge2;
|
|
1003
|
+
var init_symbolBadge = __esm({
|
|
1004
|
+
"src/pages/overview/funding/symbolBadge.tsx"() {
|
|
1005
|
+
SymbolBadge2 = (props) => {
|
|
1006
|
+
const { brokerId, brokerName, brokerNameRaw } = hooks.useBadgeBySymbol(
|
|
1007
|
+
props.symbol
|
|
1008
|
+
);
|
|
1009
|
+
const badge = brokerName ?? brokerId ?? void 0;
|
|
1010
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.SymbolBadge, { badge, fullName: brokerNameRaw });
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
990
1014
|
var FundingHistoryMobile;
|
|
991
1015
|
var init_fundingHistory_ui_mobile = __esm({
|
|
992
1016
|
"src/pages/overview/funding/fundingHistory.ui.mobile.tsx"() {
|
|
1017
|
+
init_symbolBadge();
|
|
993
1018
|
FundingHistoryMobile = (props) => {
|
|
994
1019
|
const { dataSource: dataSource2, queryParameter, onFilter, isLoading, pagination } = props;
|
|
995
1020
|
const symbols = hooks.useSymbolsInfo();
|
|
@@ -1026,11 +1051,16 @@ var init_fundingHistory_ui_mobile = __esm({
|
|
|
1026
1051
|
ui.Text.formatted,
|
|
1027
1052
|
{
|
|
1028
1053
|
rule: "symbol",
|
|
1054
|
+
formatString: "base",
|
|
1029
1055
|
className: "oui-text-base-contrast oui-mr-1 oui-text-sm",
|
|
1056
|
+
suffix: /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { direction: "row", gap: 1, children: [
|
|
1057
|
+
" ",
|
|
1058
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Badge, { color: "neutral", size: "xs", children: switchPaymentType(item.payment_type) }),
|
|
1059
|
+
/* @__PURE__ */ jsxRuntime.jsx(SymbolBadge2, { symbol: item.symbol })
|
|
1060
|
+
] }),
|
|
1030
1061
|
children: item.symbol
|
|
1031
1062
|
}
|
|
1032
1063
|
),
|
|
1033
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.Badge, { color: "neutral", size: "xs", children: switchPaymentType(item.payment_type) }),
|
|
1034
1064
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1035
1065
|
ui.Text.formatted,
|
|
1036
1066
|
{
|