@ape.swap/bonds-sdk 1.0.336 → 1.0.337
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.
|
@@ -64,6 +64,7 @@ import { ethers } from 'ethers';
|
|
|
64
64
|
import { adjustDecimals } from "../../utils/convertToTokenValue";
|
|
65
65
|
import { BondAbi } from '../../enum/abis';
|
|
66
66
|
import TokenImage from '../uikit-sdk/TokenImage';
|
|
67
|
+
import '../../scss/BondModal.scss';
|
|
67
68
|
var BondModal = function (_a) {
|
|
68
69
|
var isOpen = _a.isOpen, onClose = _a.onClose, bondAddress = _a.bondAddress;
|
|
69
70
|
if (!isOpen)
|
|
@@ -253,7 +254,10 @@ var BondModal = function (_a) {
|
|
|
253
254
|
!!v.currentTarget.value && isNumber(v.currentTarget.value) && parseFloat(v.currentTarget.value) >= 0
|
|
254
255
|
? v.currentTarget.value
|
|
255
256
|
: v.currentTarget.value.slice(0, v.currentTarget.value.length - 1);
|
|
256
|
-
} }) })), _jsx(Flex, __assign({ className: "input-container token" }, { children: bond === null || bond === void 0 ? void 0 : bond.principalTokenName }))] })), _jsxs(Flex, __assign({ className: "modal-container button-container" }, { children: [_jsx(Flex, __assign({ className: "button-container get" }, { children: _jsxs(Button, { children: ["Get ", bond === null || bond === void 0 ? void 0 : bond.principalTokenName] }) })), _jsx(Flex, __assign({ className: "button-container buy" }, { children:
|
|
257
|
+
} }) })), _jsx(Flex, __assign({ className: "input-container token" }, { children: bond === null || bond === void 0 ? void 0 : bond.principalTokenName }))] })), _jsxs(Flex, __assign({ className: "modal-container button-container" }, { children: [_jsx(Flex, __assign({ className: "button-container get" }, { children: _jsxs(Button, { children: ["Get ", bond === null || bond === void 0 ? void 0 : bond.principalTokenName] }) })), _jsx(Flex, __assign({ className: "button-container buy" }, { children: approvalStatus === true ?
|
|
258
|
+
_jsxs(Button, __assign({ onClick: handleBuy }, { children: ["Buy ", bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName] }))
|
|
259
|
+
:
|
|
260
|
+
_jsx(Button, __assign({ onClick: handleApprove }, { children: "Approve" })) }))] }))] }))] })) })) }, bond.billAddress));
|
|
257
261
|
}) })));
|
|
258
262
|
};
|
|
259
263
|
export default BondModal;
|