@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.
Files changed (87) hide show
  1. package/dist/components/Icon/AddCircleIcon.d.ts +1 -1
  2. package/dist/components/Icon/AddIcon.d.ts +1 -1
  3. package/dist/components/Icon/AddWalletIcon.d.ts +1 -1
  4. package/dist/components/Icon/AngleDownIcon.d.ts +2 -2
  5. package/dist/components/Icon/AngleLeftIcon.d.ts +1 -1
  6. package/dist/components/Icon/AngleRightIcon.d.ts +1 -1
  7. package/dist/components/Icon/AngleUpIcon.d.ts +1 -1
  8. package/dist/components/Icon/BagIcon.d.ts +1 -1
  9. package/dist/components/Icon/BanIcon.d.ts +1 -1
  10. package/dist/components/Icon/CheckCircleIcon.d.ts +1 -1
  11. package/dist/components/Icon/CheckIcon.d.ts +1 -1
  12. package/dist/components/Icon/CheckSquareIcon.d.ts +1 -1
  13. package/dist/components/Icon/CheckWalletIcon.d.ts +1 -1
  14. package/dist/components/Icon/DeleteCircleIcon.d.ts +1 -1
  15. package/dist/components/Icon/DeleteWalletIcon.d.ts +1 -1
  16. package/dist/components/Icon/DownloadIcon.d.ts +1 -1
  17. package/dist/components/Icon/GasIcon.d.ts +1 -1
  18. package/dist/components/Icon/HistoryIcon.d.ts +1 -1
  19. package/dist/components/Icon/HorizontalSwapIcon.d.ts +1 -1
  20. package/dist/components/Icon/Icons.stories.d.ts +1 -2
  21. package/dist/components/Icon/InfoCircleIcon.d.ts +1 -1
  22. package/dist/components/Icon/MinusCircleIcon.d.ts +1 -1
  23. package/dist/components/Icon/RetryLeftIcon.d.ts +1 -1
  24. package/dist/components/Icon/RetryRightIcon.d.ts +1 -1
  25. package/dist/components/Icon/SearchIcon.d.ts +1 -1
  26. package/dist/components/Icon/SearchMinusIcon.d.ts +1 -1
  27. package/dist/components/Icon/SettingIcon.d.ts +1 -1
  28. package/dist/components/Icon/SignatureIcon.d.ts +1 -1
  29. package/dist/components/Icon/SwapWalletIcon.d.ts +1 -1
  30. package/dist/components/Icon/TrashIcon.d.ts +1 -1
  31. package/dist/components/Icon/TryAgainIcon.d.ts +1 -1
  32. package/dist/components/Icon/VerticalSwapIcon.d.ts +1 -1
  33. package/dist/components/Icon/WalletIconIcon.d.ts +1 -1
  34. package/dist/components/Icon/WarningIcon.d.ts +1 -1
  35. package/dist/components/TextField/TextField.stories.d.ts +1 -1
  36. package/dist/containers/ConfirmWallets/types.d.ts +1 -0
  37. package/dist/ui.cjs.development.js +108 -84
  38. package/dist/ui.cjs.development.js.map +1 -1
  39. package/dist/ui.cjs.production.min.js +1 -1
  40. package/dist/ui.cjs.production.min.js.map +1 -1
  41. package/dist/ui.esm.js +109 -85
  42. package/dist/ui.esm.js.map +1 -1
  43. package/package.json +2 -2
  44. package/src/components/Alert/Alert.tsx +9 -5
  45. package/src/components/BestRoute/BestRoute.tsx +3 -3
  46. package/src/components/Icon/AddCircleIcon.tsx +25 -23
  47. package/src/components/Icon/AddIcon.tsx +26 -23
  48. package/src/components/Icon/AddWalletIcon.tsx +44 -42
  49. package/src/components/Icon/AngleDownIcon.tsx +24 -24
  50. package/src/components/Icon/AngleLeftIcon.tsx +26 -24
  51. package/src/components/Icon/AngleRightIcon.tsx +26 -24
  52. package/src/components/Icon/AngleUpIcon.tsx +26 -24
  53. package/src/components/Icon/BagIcon.tsx +33 -31
  54. package/src/components/Icon/BanIcon.tsx +26 -24
  55. package/src/components/Icon/CheckCircleIcon.tsx +33 -31
  56. package/src/components/Icon/CheckIcon.tsx +24 -22
  57. package/src/components/Icon/CheckSquareIcon.tsx +31 -29
  58. package/src/components/Icon/CheckWalletIcon.tsx +39 -37
  59. package/src/components/Icon/DeleteCircleIcon.tsx +25 -23
  60. package/src/components/Icon/DeleteWalletIcon.tsx +44 -42
  61. package/src/components/Icon/DownloadIcon.tsx +31 -29
  62. package/src/components/Icon/GasIcon.tsx +31 -29
  63. package/src/components/Icon/HistoryIcon.tsx +34 -32
  64. package/src/components/Icon/HorizontalSwapIcon.tsx +33 -31
  65. package/src/components/Icon/InfoCircleIcon.tsx +33 -31
  66. package/src/components/Icon/MinusCircleIcon.tsx +25 -23
  67. package/src/components/Icon/RetryLeftIcon.tsx +25 -23
  68. package/src/components/Icon/RetryRightIcon.tsx +25 -23
  69. package/src/components/Icon/SearchIcon.tsx +25 -23
  70. package/src/components/Icon/SearchMinusIcon.tsx +25 -23
  71. package/src/components/Icon/SettingIcon.tsx +33 -31
  72. package/src/components/Icon/SignatureIcon.tsx +26 -24
  73. package/src/components/Icon/SwapWalletIcon.tsx +44 -42
  74. package/src/components/Icon/TrashIcon.tsx +25 -23
  75. package/src/components/Icon/TryAgainIcon.tsx +25 -23
  76. package/src/components/Icon/VerticalSwapIcon.tsx +32 -30
  77. package/src/components/Icon/WalletIconIcon.tsx +34 -32
  78. package/src/components/Icon/WarningIcon.tsx +31 -29
  79. package/src/components/Radio/Radio.tsx +2 -2
  80. package/src/components/SelectableWalletList/SelectableWalletList.tsx +2 -1
  81. package/src/components/Tooltip/Tooltip.tsx +7 -1
  82. package/src/components/Typography/Typography.tsx +1 -0
  83. package/src/containers/ConfirmSwap/ConfirmSwap.tsx +3 -3
  84. package/src/containers/ConfirmWallets/ConfirmWallets.tsx +1 -1
  85. package/src/containers/ConfirmWallets/types.ts +1 -0
  86. package/src/containers/History/History.tsx +4 -3
  87. 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 = React.forwardRef<SVGSVGElement, IconProps>(
6
- ({ size = 16, color, ...props }) => {
7
- return (
8
- <SvgWithStrokeColor
9
- width={size}
10
- height={size}
11
- viewBox="0 0 24 24"
12
- color={color}
13
- fill="none"
14
- xmlns="http://www.w3.org/2000/svg"
15
- className="_icon"
16
- {...props}
17
- >
18
- <path
19
- 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"
20
- strokeWidth={1.5}
21
- strokeLinecap="round"
22
- strokeLinejoin="round"
23
- />
24
- </SvgWithStrokeColor>
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 = React.forwardRef<SVGSVGElement, IconProps>(
6
- ({ size = 16, color, ...props }) => {
7
- return (
8
- <SvgWithStrokeColor
9
- width={size}
10
- height={size}
11
- viewBox="0 0 24 24"
12
- color={color}
13
- fill="none"
14
- xmlns="http://www.w3.org/2000/svg"
15
- className="_icon"
16
- {...props}
17
- >
18
- <path
19
- 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"
20
- strokeWidth={1.5}
21
- strokeLinecap="round"
22
- strokeLinejoin="round"
23
- />
24
- </SvgWithStrokeColor>
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 = React.forwardRef<SVGSVGElement, IconProps>(
6
- ({ size = 16, color, ...props }) => {
7
- return (
8
- <SvgWithStrokeColor
9
- width={size}
10
- height={size}
11
- viewBox="0 0 24 24"
12
- color={color}
13
- fill="none"
14
- xmlns="http://www.w3.org/2000/svg"
15
- className="_icon"
16
- {...props}
17
- >
18
- <path
19
- d="m13.82 6.85 3.04 3.04M13.82 17.15V6.85M10.18 17.15l-3.04-3.04M10.18 6.85v10.3"
20
- strokeWidth={1.5}
21
- strokeMiterlimit={10}
22
- strokeLinecap="round"
23
- strokeLinejoin="round"
24
- />
25
- <path
26
- d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"
27
- strokeWidth={1.5}
28
- strokeLinecap="round"
29
- strokeLinejoin="round"
30
- />
31
- </SvgWithStrokeColor>
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 = React.forwardRef<SVGSVGElement, IconProps>(
6
- ({ size = 16, color, ...props }) => {
7
- return (
8
- <SvgWithFillColor
9
- width={size}
10
- height={size}
11
- viewBox="0 0 24 24"
12
- color={color}
13
- fill="none"
14
- xmlns="http://www.w3.org/2000/svg"
15
- className="_icon"
16
- {...props}
17
- >
18
- <path
19
- fillRule="evenodd"
20
- clipRule="evenodd"
21
- 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"
22
- />
23
- <path
24
- fillRule="evenodd"
25
- clipRule="evenodd"
26
- 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"
27
- />
28
- <path
29
- fillRule="evenodd"
30
- clipRule="evenodd"
31
- 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"
32
- />
33
- </SvgWithFillColor>
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 = React.forwardRef<SVGSVGElement, IconProps>(
6
- ({ size = 16, color, ...props }) => {
7
- return (
8
- <SvgWithStrokeColor
9
- width={size}
10
- height={size}
11
- viewBox="0 0 24 24"
12
- color={color}
13
- fill="none"
14
- xmlns="http://www.w3.org/2000/svg"
15
- className="_icon"
16
- {...props}
17
- >
18
- <path
19
- 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"
20
- strokeWidth={1.5}
21
- strokeLinecap="round"
22
- strokeLinejoin="round"
23
- />
24
- <path
25
- d="M11.994 17h.01"
26
- strokeWidth={2}
27
- strokeLinecap="round"
28
- strokeLinejoin="round"
29
- />
30
- </SvgWithStrokeColor>
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.walletType}</Typography>
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>{children}</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}
@@ -4,6 +4,7 @@ import { styled } from '../../theme';
4
4
  const TypographyContainer = styled('span', {
5
5
  margin: 0,
6
6
  color: '$foreground',
7
+ display: 'inline-block',
7
8
  variants: {
8
9
  variant: {
9
10
  h1: {
@@ -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
  );
@@ -47,7 +47,7 @@ export function ConfirmWallets({
47
47
  return (
48
48
  <SecondaryPage
49
49
  textField={false}
50
- title="Swap"
50
+ title="Confirm Swap"
51
51
  onBack={onBack}
52
52
  Footer={
53
53
  <Footer>
@@ -6,4 +6,5 @@ export interface SelectableWallet {
6
6
  address: string;
7
7
  image: string;
8
8
  selected: boolean;
9
+ name: string;
9
10
  }
@@ -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
  }