@rango-dev/widget-embedded 0.21.1-next.6 → 0.21.1-next.7
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/ConfirmWalletsModal/WalletList.d.ts.map +1 -1
- package/dist/components/HeaderButtons/HomeButtons.d.ts.map +1 -1
- package/dist/components/NotificationContent/NotificationContent.styles.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +3 -3
- package/package.json +3 -3
- package/src/components/ConfirmWalletsModal/WalletList.tsx +4 -2
- package/src/components/HeaderButtons/HomeButtons.tsx +2 -1
- package/src/components/NotificationContent/NotificationContent.styles.ts +1 -0
- package/src/components/Quote/Quote.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/widget-embedded",
|
|
3
|
-
"version": "0.21.1-next.
|
|
3
|
+
"version": "0.21.1-next.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@rango-dev/queue-manager-core": "^0.25.0",
|
|
26
26
|
"@rango-dev/queue-manager-rango-preset": "^0.26.0",
|
|
27
27
|
"@rango-dev/queue-manager-react": "^0.25.0",
|
|
28
|
-
"@rango-dev/ui": "^0.27.1-next.
|
|
28
|
+
"@rango-dev/ui": "^0.27.1-next.5",
|
|
29
29
|
"@rango-dev/wallets-react": "^0.12.0",
|
|
30
30
|
"@rango-dev/wallets-shared": "^0.26.0",
|
|
31
31
|
"bignumber.js": "^9.1.1",
|
|
@@ -47,4 +47,4 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
}
|
|
50
|
-
}
|
|
50
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
2
1
|
import type { PropTypes } from './WalletList.type';
|
|
3
2
|
import type { Wallet } from '../../types';
|
|
4
3
|
import type { WalletInfo } from '@rango-dev/ui';
|
|
@@ -42,6 +41,7 @@ import {
|
|
|
42
41
|
WalletImageContainer,
|
|
43
42
|
} from './WalletList.styles';
|
|
44
43
|
|
|
44
|
+
const ACCOUNT_ADDRESS_MAX_CHARACTERS = 7;
|
|
45
45
|
export function WalletList(props: PropTypes) {
|
|
46
46
|
const { chain, isSelected, selectWallet, limit, onShowMore } = props;
|
|
47
47
|
const { config } = useAppStore();
|
|
@@ -147,7 +147,9 @@ export function WalletList(props: PropTypes) {
|
|
|
147
147
|
walletType: wallet.type,
|
|
148
148
|
chain,
|
|
149
149
|
});
|
|
150
|
-
const conciseAddress = address
|
|
150
|
+
const conciseAddress = address
|
|
151
|
+
? getConciseAddress(address, ACCOUNT_ADDRESS_MAX_CHARACTERS)
|
|
152
|
+
: '';
|
|
151
153
|
|
|
152
154
|
const experimentalChain = isExperimentalChain(blockchains(), chain);
|
|
153
155
|
|
|
@@ -39,7 +39,8 @@ export function HomeButtons(props: HomeButtonsPropTypes) {
|
|
|
39
39
|
|
|
40
40
|
{!isNotificationsHidden && (
|
|
41
41
|
<Popover
|
|
42
|
-
align="
|
|
42
|
+
align="end"
|
|
43
|
+
alignOffset={-88}
|
|
43
44
|
collisionPadding={{ right: 20, left: 20 }}
|
|
44
45
|
container={getContainer()}
|
|
45
46
|
content={<NotificationContent />}>
|
|
@@ -190,7 +190,7 @@ export function Quote(props: QuoteProps) {
|
|
|
190
190
|
title={
|
|
191
191
|
error?.type === QuoteErrorType.BRIDGE_LIMIT
|
|
192
192
|
? error?.recommendation
|
|
193
|
-
: i18n.t(
|
|
193
|
+
: i18n.t(`Slippage ${stepHasError ? 'Error' : 'Warning'}:`)
|
|
194
194
|
}
|
|
195
195
|
footer={
|
|
196
196
|
<FooterAlert>
|