@rango-dev/ui 0.1.10-next.74 → 0.1.10-next.75
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/components/Icon/AddCircleIcon.d.ts +1 -1
- package/dist/components/Icon/AddIcon.d.ts +1 -1
- package/dist/components/Icon/AddWalletIcon.d.ts +1 -1
- package/dist/components/Icon/AngleDownIcon.d.ts +2 -2
- package/dist/components/Icon/AngleLeftIcon.d.ts +1 -1
- package/dist/components/Icon/AngleRightIcon.d.ts +1 -1
- package/dist/components/Icon/AngleUpIcon.d.ts +1 -1
- package/dist/components/Icon/BagIcon.d.ts +1 -1
- package/dist/components/Icon/BanIcon.d.ts +1 -1
- package/dist/components/Icon/CheckCircleIcon.d.ts +1 -1
- package/dist/components/Icon/CheckIcon.d.ts +1 -1
- package/dist/components/Icon/CheckSquareIcon.d.ts +1 -1
- package/dist/components/Icon/CheckWalletIcon.d.ts +1 -1
- package/dist/components/Icon/DeleteCircleIcon.d.ts +1 -1
- package/dist/components/Icon/DeleteWalletIcon.d.ts +1 -1
- package/dist/components/Icon/DownloadIcon.d.ts +1 -1
- package/dist/components/Icon/GasIcon.d.ts +1 -1
- package/dist/components/Icon/HistoryIcon.d.ts +1 -1
- package/dist/components/Icon/HorizontalSwapIcon.d.ts +1 -1
- package/dist/components/Icon/Icons.stories.d.ts +1 -2
- package/dist/components/Icon/InfoCircleIcon.d.ts +1 -1
- package/dist/components/Icon/MinusCircleIcon.d.ts +1 -1
- package/dist/components/Icon/RetryLeftIcon.d.ts +1 -1
- package/dist/components/Icon/RetryRightIcon.d.ts +1 -1
- package/dist/components/Icon/SearchIcon.d.ts +1 -1
- package/dist/components/Icon/SearchMinusIcon.d.ts +1 -1
- package/dist/components/Icon/SettingIcon.d.ts +1 -1
- package/dist/components/Icon/SignatureIcon.d.ts +1 -1
- package/dist/components/Icon/SwapWalletIcon.d.ts +1 -1
- package/dist/components/Icon/TrashIcon.d.ts +1 -1
- package/dist/components/Icon/TryAgainIcon.d.ts +1 -1
- package/dist/components/Icon/VerticalSwapIcon.d.ts +1 -1
- package/dist/components/Icon/WalletIconIcon.d.ts +1 -1
- package/dist/components/Icon/WarningIcon.d.ts +1 -1
- package/dist/components/TextField/TextField.stories.d.ts +1 -1
- package/dist/containers/ConfirmWallets/types.d.ts +1 -0
- package/dist/ui.cjs.development.js +108 -84
- package/dist/ui.cjs.development.js.map +1 -1
- package/dist/ui.cjs.production.min.js +1 -1
- package/dist/ui.cjs.production.min.js.map +1 -1
- package/dist/ui.esm.js +109 -85
- package/dist/ui.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Alert/Alert.tsx +9 -5
- package/src/components/BestRoute/BestRoute.tsx +3 -3
- package/src/components/Icon/AddCircleIcon.tsx +25 -23
- package/src/components/Icon/AddIcon.tsx +26 -23
- package/src/components/Icon/AddWalletIcon.tsx +44 -42
- package/src/components/Icon/AngleDownIcon.tsx +24 -24
- package/src/components/Icon/AngleLeftIcon.tsx +26 -24
- package/src/components/Icon/AngleRightIcon.tsx +26 -24
- package/src/components/Icon/AngleUpIcon.tsx +26 -24
- package/src/components/Icon/BagIcon.tsx +33 -31
- package/src/components/Icon/BanIcon.tsx +26 -24
- package/src/components/Icon/CheckCircleIcon.tsx +33 -31
- package/src/components/Icon/CheckIcon.tsx +24 -22
- package/src/components/Icon/CheckSquareIcon.tsx +31 -29
- package/src/components/Icon/CheckWalletIcon.tsx +39 -37
- package/src/components/Icon/DeleteCircleIcon.tsx +25 -23
- package/src/components/Icon/DeleteWalletIcon.tsx +44 -42
- package/src/components/Icon/DownloadIcon.tsx +31 -29
- package/src/components/Icon/GasIcon.tsx +31 -29
- package/src/components/Icon/HistoryIcon.tsx +34 -32
- package/src/components/Icon/HorizontalSwapIcon.tsx +33 -31
- package/src/components/Icon/InfoCircleIcon.tsx +33 -31
- package/src/components/Icon/MinusCircleIcon.tsx +25 -23
- package/src/components/Icon/RetryLeftIcon.tsx +25 -23
- package/src/components/Icon/RetryRightIcon.tsx +25 -23
- package/src/components/Icon/SearchIcon.tsx +25 -23
- package/src/components/Icon/SearchMinusIcon.tsx +25 -23
- package/src/components/Icon/SettingIcon.tsx +33 -31
- package/src/components/Icon/SignatureIcon.tsx +26 -24
- package/src/components/Icon/SwapWalletIcon.tsx +44 -42
- package/src/components/Icon/TrashIcon.tsx +25 -23
- package/src/components/Icon/TryAgainIcon.tsx +25 -23
- package/src/components/Icon/VerticalSwapIcon.tsx +32 -30
- package/src/components/Icon/WalletIconIcon.tsx +34 -32
- package/src/components/Icon/WarningIcon.tsx +31 -29
- package/src/components/Radio/Radio.tsx +2 -2
- package/src/components/SelectableWalletList/SelectableWalletList.tsx +2 -1
- package/src/components/Tooltip/Tooltip.tsx +7 -1
- package/src/components/Typography/Typography.tsx +1 -0
- package/src/containers/ConfirmSwap/ConfirmSwap.tsx +3 -3
- package/src/containers/ConfirmWallets/ConfirmWallets.tsx +1 -1
- package/src/containers/ConfirmWallets/types.ts +1 -0
- package/src/containers/History/History.tsx +4 -3
- package/src/containers/SwapHistory/SwapHistory.tsx +4 -4
|
@@ -2,28 +2,30 @@ import * as React from 'react';
|
|
|
2
2
|
import { SvgWithStrokeColor } from './common';
|
|
3
3
|
import { IconProps } from './types';
|
|
4
4
|
|
|
5
|
-
export const TrashIcon
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
5
|
+
export const TrashIcon: React.FC<IconProps> = ({
|
|
6
|
+
size = 16,
|
|
7
|
+
color,
|
|
8
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
return (
|
|
11
|
+
<SvgWithStrokeColor
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
viewBox="0 0 24 24"
|
|
15
|
+
color={color}
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
className="_icon"
|
|
19
|
+
{...props}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
d="M21.5 5.98c-3.33-.33-6.68-.5-10.02-.5-1.98 0-3.96.1-5.94.3l-2.04.2M9 4.97l.22-1.31C9.38 2.71 9.5 2 11.19 2h2.62c1.69 0 1.82.75 1.97 1.67l.22 1.3M19.35 9.14l-.65 10.07c-.11 1.57-.2 2.79-2.99 2.79H9.29c-2.79 0-2.88-1.22-2.99-2.79L5.65 9.14M10.83 16.5h3.33M10 12.5h5"
|
|
23
|
+
strokeWidth={1.5}
|
|
24
|
+
strokeLinecap="round"
|
|
25
|
+
strokeLinejoin="round"
|
|
26
|
+
/>
|
|
27
|
+
</SvgWithStrokeColor>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
28
30
|
|
|
29
31
|
TrashIcon.toString = () => '._icon';
|
|
@@ -2,28 +2,30 @@ import * as React from 'react';
|
|
|
2
2
|
import { SvgWithStrokeColor } from './common';
|
|
3
3
|
import { IconProps } from './types';
|
|
4
4
|
|
|
5
|
-
export const TryAgainIcon
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
5
|
+
export const TryAgainIcon: React.FC<IconProps> = ({
|
|
6
|
+
size = 16,
|
|
7
|
+
color,
|
|
8
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
return (
|
|
11
|
+
<SvgWithStrokeColor
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
viewBox="0 0 24 24"
|
|
15
|
+
color={color}
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
className="_icon"
|
|
19
|
+
{...props}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
d="M22 12c0 5.52-4.48 10-10 10s-8.89-5.56-8.89-5.56m0 0h4.52m-4.52 0v5M2 12C2 6.48 6.44 2 12 2c6.67 0 10 5.56 10 5.56m0 0v-5m0 5h-4.44"
|
|
23
|
+
strokeWidth={1.5}
|
|
24
|
+
strokeLinecap="round"
|
|
25
|
+
strokeLinejoin="round"
|
|
26
|
+
/>
|
|
27
|
+
</SvgWithStrokeColor>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
28
30
|
|
|
29
31
|
TryAgainIcon.toString = () => '._icon';
|
|
@@ -2,35 +2,37 @@ import * as React from 'react';
|
|
|
2
2
|
import { SvgWithStrokeColor } from './common';
|
|
3
3
|
import { IconProps } from './types';
|
|
4
4
|
|
|
5
|
-
export const VerticalSwapIcon
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
5
|
+
export const VerticalSwapIcon: React.FC<IconProps> = ({
|
|
6
|
+
size = 16,
|
|
7
|
+
color,
|
|
8
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
return (
|
|
11
|
+
<SvgWithStrokeColor
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
viewBox="0 0 24 24"
|
|
15
|
+
color={color}
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
className="_icon"
|
|
19
|
+
{...props}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
d="m13.82 6.85 3.04 3.04M13.82 17.15V6.85M10.18 17.15l-3.04-3.04M10.18 6.85v10.3"
|
|
23
|
+
strokeWidth={1.5}
|
|
24
|
+
strokeMiterlimit={10}
|
|
25
|
+
strokeLinecap="round"
|
|
26
|
+
strokeLinejoin="round"
|
|
27
|
+
/>
|
|
28
|
+
<path
|
|
29
|
+
d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"
|
|
30
|
+
strokeWidth={1.5}
|
|
31
|
+
strokeLinecap="round"
|
|
32
|
+
strokeLinejoin="round"
|
|
33
|
+
/>
|
|
34
|
+
</SvgWithStrokeColor>
|
|
35
|
+
);
|
|
36
|
+
};
|
|
35
37
|
|
|
36
38
|
VerticalSwapIcon.toString = () => '._icon';
|
|
@@ -2,37 +2,39 @@ import * as React from 'react';
|
|
|
2
2
|
import { SvgWithFillColor } from './common';
|
|
3
3
|
import { IconProps } from './types';
|
|
4
4
|
|
|
5
|
-
export const WalletIcon
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
5
|
+
export const WalletIcon: React.FC<IconProps> = ({
|
|
6
|
+
size = 16,
|
|
7
|
+
color,
|
|
8
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
return (
|
|
11
|
+
<SvgWithFillColor
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
viewBox="0 0 24 24"
|
|
15
|
+
color={color}
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
className="_icon"
|
|
19
|
+
{...props}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
fillRule="evenodd"
|
|
23
|
+
clipRule="evenodd"
|
|
24
|
+
d="M4.51 7.205a3.018 3.018 0 0 0-3.01 3.01v6.73a3.018 3.018 0 0 0 3.01 3.01h11.48a3.018 3.018 0 0 0 3.01-3.01v-.44h-1.15c-1.41 0-2.778-1.03-2.907-2.553a2.758 2.758 0 0 1 .816-2.227 2.743 2.743 0 0 1 1.971-.82H19v-.69a3.018 3.018 0 0 0-3.01-3.01H4.51ZM0 10.215a4.518 4.518 0 0 1 4.51-4.51h11.48a4.518 4.518 0 0 1 4.51 4.51v1.44a.75.75 0 0 1-.75.75h-2.02c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.9a.75.75 0 0 1 .75.75v1.19a4.518 4.518 0 0 1-4.51 4.51H4.51A4.518 4.518 0 0 1 0 16.945v-6.73Z"
|
|
25
|
+
/>
|
|
26
|
+
<path
|
|
27
|
+
fillRule="evenodd"
|
|
28
|
+
clipRule="evenodd"
|
|
29
|
+
d="M12.35 2.655a1.15 1.15 0 0 0-1.554-1.079l-7.94 3A2.098 2.098 0 0 0 1.5 6.547v4.569a.75.75 0 1 1-1.5 0v-4.57c0-1.5.922-2.84 2.325-3.371l7.94-3s-.001 0 0 0c1.732-.657 3.585.629 3.585 2.481v3.8a.75.75 0 0 1-1.5 0v-3.8ZM17.729 12.405c-.36 0-.675.14-.903.373l-.013.014c-.266.26-.415.63-.377 1.022v.009c.053.635.664 1.182 1.413 1.182h1.943a.276.276 0 0 0 .267-.27v-2.06a.276.276 0 0 0-.267-.27h-2.063Zm-1.97-.68a2.743 2.743 0 0 1 1.97-.82h2.107a1.777 1.777 0 0 1 1.723 1.77v2.06a1.777 1.777 0 0 1-1.75 1.77h-1.96c-1.41 0-2.778-1.03-2.907-2.553a2.759 2.759 0 0 1 .816-2.227Z"
|
|
30
|
+
/>
|
|
31
|
+
<path
|
|
32
|
+
fillRule="evenodd"
|
|
33
|
+
clipRule="evenodd"
|
|
34
|
+
d="M4.5 10.705a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75Z"
|
|
35
|
+
/>
|
|
36
|
+
</SvgWithFillColor>
|
|
37
|
+
);
|
|
38
|
+
};
|
|
37
39
|
|
|
38
40
|
WalletIcon.toString = () => '._icon';
|
|
@@ -2,34 +2,36 @@ import * as React from 'react';
|
|
|
2
2
|
import { IconProps } from './types';
|
|
3
3
|
import { SvgWithStrokeColor } from './common';
|
|
4
4
|
|
|
5
|
-
export const WarningIcon
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
5
|
+
export const WarningIcon: React.FC<IconProps> = ({
|
|
6
|
+
size = 16,
|
|
7
|
+
color,
|
|
8
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
return (
|
|
11
|
+
<SvgWithStrokeColor
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
viewBox="0 0 24 24"
|
|
15
|
+
color={color}
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
className="_icon"
|
|
19
|
+
{...props}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
d="M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z"
|
|
23
|
+
strokeWidth={1.5}
|
|
24
|
+
strokeLinecap="round"
|
|
25
|
+
strokeLinejoin="round"
|
|
26
|
+
/>
|
|
27
|
+
<path
|
|
28
|
+
d="M11.994 17h.01"
|
|
29
|
+
strokeWidth={2}
|
|
30
|
+
strokeLinecap="round"
|
|
31
|
+
strokeLinejoin="round"
|
|
32
|
+
/>
|
|
33
|
+
</SvgWithStrokeColor>
|
|
34
|
+
);
|
|
35
|
+
};
|
|
34
36
|
|
|
35
37
|
WarningIcon.toString = () => '._icon';
|
|
@@ -81,8 +81,8 @@ export function Radio(props: PropTypes) {
|
|
|
81
81
|
direction={direction}
|
|
82
82
|
style={style}
|
|
83
83
|
>
|
|
84
|
-
{props.options.map((option) => (
|
|
85
|
-
<ItemContainer>
|
|
84
|
+
{props.options.map((option, index) => (
|
|
85
|
+
<ItemContainer key={index}>
|
|
86
86
|
<StyledItem value={option.value} id={option.value}>
|
|
87
87
|
<StyledIndicator />
|
|
88
88
|
</StyledItem>
|
|
@@ -6,6 +6,7 @@ import { Typography } from '../Typography';
|
|
|
6
6
|
const Row = styled('div', {
|
|
7
7
|
display: 'flex',
|
|
8
8
|
flexWrap: 'wrap',
|
|
9
|
+
justifyContent: 'center',
|
|
9
10
|
});
|
|
10
11
|
|
|
11
12
|
const Circle = styled('div', {
|
|
@@ -101,7 +102,7 @@ export function SelectableWalletList({
|
|
|
101
102
|
key={index}
|
|
102
103
|
>
|
|
103
104
|
<img src={w.image} alt={w.walletType} width={24} height={24} />
|
|
104
|
-
<Typography variant="body2">{w.
|
|
105
|
+
<Typography variant="body2">{w.name}</Typography>
|
|
105
106
|
<Circle checked={checked}>
|
|
106
107
|
<SolidCircle checked={checked} />
|
|
107
108
|
</Circle>
|
|
@@ -88,6 +88,10 @@ const TooltipArrow = styled(RadixTooltip.Arrow, {
|
|
|
88
88
|
},
|
|
89
89
|
});
|
|
90
90
|
|
|
91
|
+
const ChildrenWrapper = styled('div', {
|
|
92
|
+
display: 'inline-block',
|
|
93
|
+
});
|
|
94
|
+
|
|
91
95
|
export function Tooltip({
|
|
92
96
|
children,
|
|
93
97
|
content,
|
|
@@ -97,7 +101,9 @@ export function Tooltip({
|
|
|
97
101
|
return (
|
|
98
102
|
<RadixTooltip.Provider>
|
|
99
103
|
<RadixTooltip.Root>
|
|
100
|
-
<TooltipTrigger>
|
|
104
|
+
<TooltipTrigger asChild>
|
|
105
|
+
<ChildrenWrapper>{children}</ChildrenWrapper>
|
|
106
|
+
</TooltipTrigger>
|
|
101
107
|
<RadixTooltip.Portal>
|
|
102
108
|
<TooltipContent color={color} side={side} sideOffset={5}>
|
|
103
109
|
{content}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BestRouteResponse } from 'rango-sdk';
|
|
2
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import React, { Fragment, PropsWithChildren } from 'react';
|
|
3
3
|
import { Alert } from '../../components/Alert';
|
|
4
4
|
import { Button } from '../../components/Button';
|
|
5
5
|
import { RetryIcon, GasIcon } from '../../components/Icon';
|
|
@@ -105,7 +105,7 @@ export function ConfirmSwap({
|
|
|
105
105
|
</Footer>
|
|
106
106
|
}
|
|
107
107
|
Content={bestRoute?.result?.swaps.map((swap, index) => (
|
|
108
|
-
|
|
108
|
+
<Fragment key={index}>
|
|
109
109
|
<Alerts>
|
|
110
110
|
{error && <Alert description={error} type="error" />}
|
|
111
111
|
{warning && <Alert description={warning} type="warning" />}
|
|
@@ -147,7 +147,7 @@ export function ConfirmSwap({
|
|
|
147
147
|
blockchain={swap.to.blockchain}
|
|
148
148
|
amount={swap.toAmount}
|
|
149
149
|
/>
|
|
150
|
-
|
|
150
|
+
</Fragment>
|
|
151
151
|
))}
|
|
152
152
|
/>
|
|
153
153
|
);
|
|
@@ -51,11 +51,12 @@ const SwapsGroup = (props: Omit<PropTypes, 'onBack'>) => {
|
|
|
51
51
|
|
|
52
52
|
return (
|
|
53
53
|
<>
|
|
54
|
-
{swapsInGroup.map((group) => (
|
|
55
|
-
<Group>
|
|
54
|
+
{swapsInGroup.map((group, index) => (
|
|
55
|
+
<Group key={index}>
|
|
56
56
|
<GroupTitle variant="body2">{group.title}</GroupTitle>
|
|
57
|
-
{group.swaps.map((swap: PendingSwap) => (
|
|
57
|
+
{group.swaps.map((swap: PendingSwap, index: number) => (
|
|
58
58
|
<SwapDetail
|
|
59
|
+
key={index}
|
|
59
60
|
swap={swap}
|
|
60
61
|
status={swap.status}
|
|
61
62
|
onClick={onSwapClick}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { Fragment } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
StepDetail,
|
|
4
4
|
SecondaryPage,
|
|
@@ -70,7 +70,7 @@ export function SwapHistory(props: PropTypes) {
|
|
|
70
70
|
Content={
|
|
71
71
|
<>
|
|
72
72
|
{pendingSwap?.steps.map((step, index) => (
|
|
73
|
-
|
|
73
|
+
<Fragment key={index}>
|
|
74
74
|
{index === 0 && (
|
|
75
75
|
<RelativeContainer>
|
|
76
76
|
<StepDetail
|
|
@@ -110,7 +110,7 @@ export function SwapHistory(props: PropTypes) {
|
|
|
110
110
|
{!!step.explorerUrl && (
|
|
111
111
|
<div>
|
|
112
112
|
{step.explorerUrl.map((item, index) => (
|
|
113
|
-
<InternalDetail>
|
|
113
|
+
<InternalDetail key={index}>
|
|
114
114
|
<DescriptionContainer>
|
|
115
115
|
<CheckCircleIcon color="success" />
|
|
116
116
|
<Description variant="body2">
|
|
@@ -156,7 +156,7 @@ export function SwapHistory(props: PropTypes) {
|
|
|
156
156
|
blockchain={step.toBlockchain}
|
|
157
157
|
amount={step.outputAmount}
|
|
158
158
|
/>
|
|
159
|
-
|
|
159
|
+
</Fragment>
|
|
160
160
|
))}
|
|
161
161
|
</>
|
|
162
162
|
}
|