@ape.swap/bonds-sdk 2.5.2-test2 → 2.5.2-test3
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/main.js
CHANGED
|
@@ -74218,7 +74218,7 @@ const RestrictedRegionModal = ({ onDismiss }) => {
|
|
|
74218
74218
|
return (jsxs(Modal, { className: "modal", title: "Notice", sx: { maxWidth: '200px' }, children: [jsxs(Flex, { sx: { my: '20px' }, children: ["Unfortunately, this bond is restricted for your region: ", geoData === null || geoData === void 0 ? void 0 : geoData.countryCode, "."] }), jsx$2(Button, { fullWidth: true, onClick: onDismiss, children: "Close" })] }));
|
|
74219
74219
|
};
|
|
74220
74220
|
|
|
74221
|
-
const
|
|
74221
|
+
const NoBonusModal = ({ onAcknowledge }) => {
|
|
74222
74222
|
const [isOpen, setIsOpen] = useState(true);
|
|
74223
74223
|
const handleAcknowledge = () => {
|
|
74224
74224
|
onAcknowledge();
|
|
@@ -74420,11 +74420,11 @@ const BondModal = ({ onDismiss, bondAddress, bondChain, handlePurchasedBond }) =
|
|
|
74420
74420
|
}
|
|
74421
74421
|
}
|
|
74422
74422
|
};
|
|
74423
|
-
const [
|
|
74423
|
+
const [openNoBonusModal] = useModal(jsx$2(NoBonusModal, { onAcknowledge: handleBothPurchases }), true, true);
|
|
74424
74424
|
const handleOpenModal = () => {
|
|
74425
74425
|
var _a;
|
|
74426
74426
|
if ((_a = bondData === null || bondData === void 0 ? void 0 : bondData.bonus) !== null && _a !== void 0 ? _a : 0 < 0) {
|
|
74427
|
-
|
|
74427
|
+
openNoBonusModal();
|
|
74428
74428
|
}
|
|
74429
74429
|
else {
|
|
74430
74430
|
handleBothPurchases();
|
package/dist/styles.css
CHANGED
package/package.json
CHANGED