@rango-dev/widget-embedded 0.49.1-next.0 → 0.49.1-next.1

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.0",
3
+ "version": "0.49.1-next.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -54,4 +54,4 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  }
57
- }
57
+ }
@@ -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={SWAP_MODE_TAB_ITEMS}
219
+ items={swapModeTabItems}
220
220
  onChange={(item) => setSwapModeActiveTab(item.id as SwapModeTab)}
221
221
  value={swapModeActiveTab}
222
222
  type="secondary"