@rango-dev/ui 0.1.10-next.76 → 0.1.10-next.78
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/containers/ConfirmWallets/ConfirmWallets.d.ts +3 -1
- package/dist/ui.cjs.development.js +12 -3
- 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 +12 -3
- package/dist/ui.esm.js.map +1 -1
- package/package.json +2 -5
- package/src/containers/ConfirmWallets/ConfirmWallets.tsx +22 -6
package/dist/ui.esm.js
CHANGED
|
@@ -3951,7 +3951,9 @@ function ConfirmWallets(_ref) {
|
|
|
3951
3951
|
requiredWallets = _ref.requiredWallets,
|
|
3952
3952
|
selectableWallets = _ref.selectableWallets,
|
|
3953
3953
|
onChange = _ref.onChange,
|
|
3954
|
-
confirmDisabled = _ref.confirmDisabled
|
|
3954
|
+
confirmDisabled = _ref.confirmDisabled,
|
|
3955
|
+
isExperimentalChain = _ref.isExperimentalChain,
|
|
3956
|
+
handleConnectChain = _ref.handleConnectChain;
|
|
3955
3957
|
var firstStep = (_swap$result = swap.result) == null ? void 0 : _swap$result.swaps[0];
|
|
3956
3958
|
var lastStep = (_swap$result2 = swap.result) == null ? void 0 : _swap$result2.swaps[((_swap$result3 = swap.result) == null ? void 0 : _swap$result3.swaps.length) - 1];
|
|
3957
3959
|
var fromAmount = decimalNumber(firstStep == null ? void 0 : firstStep.fromAmount, 3);
|
|
@@ -3981,10 +3983,17 @@ function ConfirmWallets(_ref) {
|
|
|
3981
3983
|
variant: "body2",
|
|
3982
3984
|
mb: 12,
|
|
3983
3985
|
mt: 12
|
|
3984
|
-
}, index + 1, ") Your ", wallet, " Wallet"), list.length === 0 && React__default.createElement(AlertContainer, null, React__default.createElement(Alert, {
|
|
3986
|
+
}, index + 1, ") Your ", wallet, " Wallet"), list.length === 0 && React__default.createElement(React__default.Fragment, null, React__default.createElement(AlertContainer, null, React__default.createElement(Alert, {
|
|
3985
3987
|
type: "error",
|
|
3986
3988
|
description: "You should connect a " + wallet + " supported wallet"
|
|
3987
|
-
})),
|
|
3989
|
+
})), (isExperimentalChain == null ? void 0 : isExperimentalChain(wallet)) && React__default.createElement(Button, {
|
|
3990
|
+
variant: "contained",
|
|
3991
|
+
type: "primary",
|
|
3992
|
+
align: "grow",
|
|
3993
|
+
onClick: function onClick() {
|
|
3994
|
+
return handleConnectChain == null ? void 0 : handleConnectChain(wallet);
|
|
3995
|
+
}
|
|
3996
|
+
}, "Add " + wallet + " chain to Cosmos wallets")), list.length != 0 && React__default.createElement(SelectableWalletList, {
|
|
3988
3997
|
list: list,
|
|
3989
3998
|
onChange: onChange
|
|
3990
3999
|
}));
|