@rango-dev/widget-embedded 0.49.1-next.0 → 0.49.1-next.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/widget-embedded",
|
|
3
|
-
"version": "0.49.1-next.
|
|
3
|
+
"version": "0.49.1-next.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"@lingui/core": "4.2.1",
|
|
26
26
|
"@lingui/react": "4.2.1",
|
|
27
27
|
"@rango-dev/logging-core": "^0.11.0",
|
|
28
|
-
"@rango-dev/provider-all": "^0.51.1-next.
|
|
28
|
+
"@rango-dev/provider-all": "^0.51.1-next.1",
|
|
29
29
|
"@rango-dev/queue-manager-core": "^0.32.0",
|
|
30
|
-
"@rango-dev/queue-manager-rango-preset": "^0.51.1-next.
|
|
30
|
+
"@rango-dev/queue-manager-rango-preset": "^0.51.1-next.1",
|
|
31
31
|
"@rango-dev/queue-manager-react": "^0.32.0",
|
|
32
32
|
"@rango-dev/signer-solana": "^0.44.0",
|
|
33
|
-
"@rango-dev/ui": "^0.52.1-next.
|
|
33
|
+
"@rango-dev/ui": "^0.52.1-next.1",
|
|
34
34
|
"@rango-dev/wallets-core": "^0.48.1-next.0",
|
|
35
|
-
"@rango-dev/wallets-react": "^0.35.1-next.
|
|
36
|
-
"@rango-dev/wallets-shared": "^0.49.1-next.
|
|
35
|
+
"@rango-dev/wallets-react": "^0.35.1-next.1",
|
|
36
|
+
"@rango-dev/wallets-shared": "^0.49.1-next.1",
|
|
37
37
|
"bignumber.js": "^9.1.1",
|
|
38
38
|
"copy-to-clipboard": "^3.3.3",
|
|
39
39
|
"dayjs": "^1.11.7",
|
|
@@ -57,33 +57,6 @@ const Description = styled('div', {
|
|
|
57
57
|
},
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
const transactionStatusFilters = [
|
|
61
|
-
{
|
|
62
|
-
id: TransactionStatus.SUCCESS,
|
|
63
|
-
title: i18n.t('Complete'),
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
id: TransactionStatus.RUNNING,
|
|
67
|
-
title: i18n.t('Running'),
|
|
68
|
-
},
|
|
69
|
-
{ id: TransactionStatus.FAILED, title: i18n.t('Failed') },
|
|
70
|
-
];
|
|
71
|
-
|
|
72
|
-
const SWAP_MODE_TAB_ITEMS = [
|
|
73
|
-
{
|
|
74
|
-
id: 'all',
|
|
75
|
-
title: i18n.t('All'),
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
id: 'swap',
|
|
79
|
-
title: i18n.t('Swap'),
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
id: 'refuel',
|
|
83
|
-
title: i18n.t('Refuel'),
|
|
84
|
-
},
|
|
85
|
-
];
|
|
86
|
-
|
|
87
60
|
const isStepContainsText = (steps: PendingSwapStep[], value: string) => {
|
|
88
61
|
if (!steps?.length) {
|
|
89
62
|
return false;
|
|
@@ -114,6 +87,33 @@ export function HistoryPage() {
|
|
|
114
87
|
};
|
|
115
88
|
const { isMultiMode } = useSwapMode();
|
|
116
89
|
|
|
90
|
+
const transactionStatusFilters = [
|
|
91
|
+
{
|
|
92
|
+
id: TransactionStatus.SUCCESS,
|
|
93
|
+
title: i18n.t('Complete'),
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
id: TransactionStatus.RUNNING,
|
|
97
|
+
title: i18n.t('Running'),
|
|
98
|
+
},
|
|
99
|
+
{ id: TransactionStatus.FAILED, title: i18n.t('Failed') },
|
|
100
|
+
];
|
|
101
|
+
|
|
102
|
+
const swapModeTabItems = [
|
|
103
|
+
{
|
|
104
|
+
id: 'all',
|
|
105
|
+
title: i18n.t('All'),
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: 'swap',
|
|
109
|
+
title: i18n.t('Swap'),
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: 'refuel',
|
|
113
|
+
title: i18n.t('Refuel'),
|
|
114
|
+
},
|
|
115
|
+
];
|
|
116
|
+
|
|
117
117
|
const filteredList = useMemo(() => {
|
|
118
118
|
if (!searchedFor && !filterBy && swapModeActiveTab === 'all') {
|
|
119
119
|
return list;
|
|
@@ -216,7 +216,7 @@ export function HistoryPage() {
|
|
|
216
216
|
{isMultiMode && !loading && (
|
|
217
217
|
<>
|
|
218
218
|
<Tabs
|
|
219
|
-
items={
|
|
219
|
+
items={swapModeTabItems}
|
|
220
220
|
onChange={(item) => setSwapModeActiveTab(item.id as SwapModeTab)}
|
|
221
221
|
value={swapModeActiveTab}
|
|
222
222
|
type="secondary"
|