@rango-dev/ui 0.1.10-next.76 → 0.1.10-next.77
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 +1 -1
- package/src/containers/ConfirmWallets/ConfirmWallets.tsx +22 -6
|
@@ -10,5 +10,7 @@ export interface PropTypes {
|
|
|
10
10
|
requiredWallets: string[];
|
|
11
11
|
selectableWallets: SelectableWallet[];
|
|
12
12
|
onChange: (w: SelectableWallet) => void;
|
|
13
|
+
isExperimentalChain?: (wallet: string) => boolean;
|
|
14
|
+
handleConnectChain?: (wallet: string) => void;
|
|
13
15
|
}
|
|
14
|
-
export declare function ConfirmWallets({ onBack, loading, onConfirm, swap, requiredWallets, selectableWallets, onChange, confirmDisabled, }: PropsWithChildren<PropTypes>): JSX.Element;
|
|
16
|
+
export declare function ConfirmWallets({ onBack, loading, onConfirm, swap, requiredWallets, selectableWallets, onChange, confirmDisabled, isExperimentalChain, handleConnectChain, }: PropsWithChildren<PropTypes>): JSX.Element;
|
|
@@ -3957,7 +3957,9 @@ function ConfirmWallets(_ref) {
|
|
|
3957
3957
|
requiredWallets = _ref.requiredWallets,
|
|
3958
3958
|
selectableWallets = _ref.selectableWallets,
|
|
3959
3959
|
onChange = _ref.onChange,
|
|
3960
|
-
confirmDisabled = _ref.confirmDisabled
|
|
3960
|
+
confirmDisabled = _ref.confirmDisabled,
|
|
3961
|
+
isExperimentalChain = _ref.isExperimentalChain,
|
|
3962
|
+
handleConnectChain = _ref.handleConnectChain;
|
|
3961
3963
|
var firstStep = (_swap$result = swap.result) == null ? void 0 : _swap$result.swaps[0];
|
|
3962
3964
|
var lastStep = (_swap$result2 = swap.result) == null ? void 0 : _swap$result2.swaps[((_swap$result3 = swap.result) == null ? void 0 : _swap$result3.swaps.length) - 1];
|
|
3963
3965
|
var fromAmount = decimalNumber(firstStep == null ? void 0 : firstStep.fromAmount, 3);
|
|
@@ -3987,10 +3989,17 @@ function ConfirmWallets(_ref) {
|
|
|
3987
3989
|
variant: "body2",
|
|
3988
3990
|
mb: 12,
|
|
3989
3991
|
mt: 12
|
|
3990
|
-
}, index + 1, ") Your ", wallet, " Wallet"), list.length === 0 && React__default.createElement(AlertContainer, null, React__default.createElement(Alert, {
|
|
3992
|
+
}, index + 1, ") Your ", wallet, " Wallet"), list.length === 0 && React__default.createElement(React__default.Fragment, null, React__default.createElement(AlertContainer, null, React__default.createElement(Alert, {
|
|
3991
3993
|
type: "error",
|
|
3992
3994
|
description: "You should connect a " + wallet + " supported wallet"
|
|
3993
|
-
})),
|
|
3995
|
+
})), (isExperimentalChain == null ? void 0 : isExperimentalChain(wallet)) && React__default.createElement(Button, {
|
|
3996
|
+
variant: "contained",
|
|
3997
|
+
type: "primary",
|
|
3998
|
+
align: "grow",
|
|
3999
|
+
onClick: function onClick() {
|
|
4000
|
+
return handleConnectChain == null ? void 0 : handleConnectChain(wallet);
|
|
4001
|
+
}
|
|
4002
|
+
}, "Add " + wallet + " chain to Cosmos wallets")), list.length != 0 && React__default.createElement(SelectableWalletList, {
|
|
3994
4003
|
list: list,
|
|
3995
4004
|
onChange: onChange
|
|
3996
4005
|
}));
|