@rango-dev/widget-embedded 0.30.1-next.25 → 0.30.1-next.27

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.30.1-next.25",
3
+ "version": "0.30.1-next.27",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -30,7 +30,7 @@
30
30
  "@rango-dev/queue-manager-rango-preset": "^0.35.2-next.4",
31
31
  "@rango-dev/queue-manager-react": "^0.26.1-next.1",
32
32
  "@rango-dev/signer-solana": "^0.30.1-next.3",
33
- "@rango-dev/ui": "^0.36.1-next.12",
33
+ "@rango-dev/ui": "^0.36.2-next.0",
34
34
  "@rango-dev/wallets-react": "^0.21.2-next.5",
35
35
  "@rango-dev/wallets-shared": "^0.35.2-next.2",
36
36
  "bignumber.js": "^9.1.1",
@@ -327,6 +327,7 @@ export function ConfirmWalletsModal(props: PropTypes) {
327
327
  dismissible={!showMoreWalletFor}
328
328
  container={modalContainer}
329
329
  {...(!showMoreWalletFor && {
330
+ styles: { container: { height: '100%' } },
330
331
  footer: (
331
332
  <ConfirmButton>
332
333
  <Button
@@ -350,7 +351,7 @@ export function ConfirmWalletsModal(props: PropTypes) {
350
351
  ),
351
352
  })}
352
353
  {...(showMoreWalletFor && {
353
- styles: { container: { padding: '$0' } },
354
+ styles: { container: { height: '100%', padding: '$0' } },
354
355
  header: (
355
356
  <ShowMoreHeader>
356
357
  <NavigateBack
@@ -80,12 +80,14 @@ export function WalletsPage() {
80
80
  setSelectedWalletType(type);
81
81
  }, TIME_TO_IGNORE_MODAL);
82
82
  },
83
- onConnect: () => {
83
+ onConnect: (type) => {
84
84
  if (modalTimerId) {
85
85
  clearTimeout(modalTimerId);
86
86
  }
87
87
  setTimeout(() => {
88
- setOpenModal(false);
88
+ if (selectedWalletType === type) {
89
+ setOpenModal(false);
90
+ }
89
91
  }, TIME_TO_CLOSE_MODAL);
90
92
  },
91
93
  });