tek-wallet 0.0.191 → 0.0.193
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.
|
@@ -58,6 +58,7 @@ var DepositFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
58
58
|
var _d = (0, useWalletData_1.default)(), isAuthenticated = _d.isAuthenticated, blockchainWallets = _d.blockchainWallets;
|
|
59
59
|
var _e = (0, useDepositData_1.default)(), depositTokens = _e.depositTokens, updateDepositToken = _e.updateDepositToken;
|
|
60
60
|
var networks = (0, react_1.useMemo)(function () {
|
|
61
|
+
console.warn("🚀 ~ networks ~ selectedToken:", selectedToken);
|
|
61
62
|
if (!selectedToken) {
|
|
62
63
|
return [];
|
|
63
64
|
}
|
|
@@ -104,6 +105,7 @@ var DepositFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
104
105
|
setCurrentStep(function (prev) { return prev + 1; });
|
|
105
106
|
};
|
|
106
107
|
var handleSelectToken = function (token) {
|
|
108
|
+
console.warn("🚀 ~ handleSelectToken ~ token:", token);
|
|
107
109
|
setSelectedToken(token);
|
|
108
110
|
if (!!token) {
|
|
109
111
|
nextStep();
|
|
@@ -126,8 +128,12 @@ var DepositFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
126
128
|
alignItems: "center",
|
|
127
129
|
}, overrideBack: handleBack, hideBack: currentStep === DepositStep.SELECT_TOKEN, center: DEPOSIT_STEP_NAME[currentStep], children: (0, jsx_runtime_1.jsx)(CloseModal_1.default, { sx: { marginLeft: "auto" }, onClick: props.onClose }) }), onClose: close, children: (0, jsx_runtime_1.jsxs)(SwiperControlled_1.default, { ref: swiperRef, swiperProps: { autoHeight: true, spaceBetween: 32 }, children: [(0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12, height: "fit-content" }), children: depositTokens === null || depositTokens === void 0 ? void 0 : depositTokens.map(function (item) {
|
|
128
130
|
var stringifiedTokenData = JSON.stringify(item);
|
|
131
|
+
if (!item)
|
|
132
|
+
return null;
|
|
129
133
|
return ((0, jsx_runtime_1.jsx)(TokenSelection_1.default, { onClick: handleSelectToken, tokenData: stringifiedTokenData, active: (selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.id) === item.id }, item.id));
|
|
130
134
|
}) }) }, DepositStep.SELECT_TOKEN), (0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12 }), children: networks === null || networks === void 0 ? void 0 : networks.map(function (item) {
|
|
135
|
+
if (!item)
|
|
136
|
+
return null;
|
|
131
137
|
return ((0, jsx_runtime_1.jsx)(NetworkSelection_1.default, { onClick: handleSelectNetwork, networkData: JSON.stringify(item), active: (selectedNetwork === null || selectedNetwork === void 0 ? void 0 : selectedNetwork.id) === item.id }, item.id));
|
|
132
138
|
}) }) }, DepositStep.SELECT_NETWORK), (0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
133
139
|
display: "flex",
|