@ape.swap/bonds-sdk 2.5.2-test3 → 2.5.2-test4
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 +4 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -74224,7 +74224,10 @@ const NoBonusModal = ({ onAcknowledge }) => {
|
|
|
74224
74224
|
onAcknowledge();
|
|
74225
74225
|
setIsOpen(false);
|
|
74226
74226
|
};
|
|
74227
|
-
|
|
74227
|
+
const handleCancel = () => {
|
|
74228
|
+
setIsOpen(false);
|
|
74229
|
+
};
|
|
74230
|
+
return (isOpen && (jsxs(Modal, { className: "nobonus-modal", title: "Warning", onClose: handleAcknowledge, children: [jsx$2("p", { children: "You will not receive any bonus tokens when buying this Bond." }), jsx$2("p", { children: "Please acknowledge to proceed." }), jsxs(Flex, { className: "nobonus-actions", sx: { flexDirection: 'row', gap: '8px' }, children: [jsx$2(Button, { className: "nobonus-continue", onClick: handleAcknowledge, sx: { width: '100%', justifyContent: 'center' }, children: "Continue" }), jsx$2(Button, { classname: "nobonus-cancel", onClick: handleCancel, sx: { width: '100%', justifyContent: 'center' }, variant: "secondary", children: "Cancel" })] })] })));
|
|
74228
74231
|
};
|
|
74229
74232
|
|
|
74230
74233
|
const BondModal = ({ onDismiss, bondAddress, bondChain, handlePurchasedBond }) => {
|