@ape.swap/bonds-sdk 1.0.378 → 1.0.380
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.
|
@@ -208,7 +208,7 @@ var BondModal = function (_a) {
|
|
|
208
208
|
!!v.currentTarget.value && isNumber(v.currentTarget.value) && parseFloat(v.currentTarget.value) >= 0
|
|
209
209
|
? v.currentTarget.value
|
|
210
210
|
: v.currentTarget.value.slice(0, v.currentTarget.value.length - 1);
|
|
211
|
-
} }) })), _jsxs(Flex, __assign({ className: "input-container token" }, { children: [_jsx(Flex, __assign({ className: "input-container bondicon" }, { children: _jsxs("div", __assign({ className: "icon-container-small" }, { children: [_jsx(Svg, { width: 12, height: 12, icon: (_m = NETWORK_ICONS === null || NETWORK_ICONS === void 0 ? void 0 : NETWORK_ICONS[bond.chainId]) !== null && _m !== void 0 ? _m : 'question' }), _jsx(TokenImage, { symbol: (_o = bond.principalTokenName) !== null && _o !== void 0 ? _o : bond.payoutTokenName, size: 30 })] })) })), _jsx(Flex, __assign({ className: "title-container tokenname-small" }, { children: bond === null || bond === void 0 ? void 0 : bond.principalTokenName }))] }))] })), _jsxs(Flex, __assign({ className: "input-container balancerow" }, { children: [_jsx(Flex, __assign({ className: "balancerow text" }, { children: "Balance: " })), _jsx(Flex, __assign({ className: "balancerow max" }, { children: _jsx(Button, { children: "Max" }) }))] }))] })), _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 ?
|
|
211
|
+
} }) })), _jsxs(Flex, __assign({ className: "input-container token" }, { children: [_jsx(Flex, __assign({ className: "input-container bondicon" }, { children: _jsxs("div", __assign({ className: "icon-container-small" }, { children: [_jsx(Svg, { width: 12, height: 12, icon: (_m = NETWORK_ICONS === null || NETWORK_ICONS === void 0 ? void 0 : NETWORK_ICONS[bond.chainId]) !== null && _m !== void 0 ? _m : 'question' }), _jsx(TokenImage, { symbol: (_o = bond.principalTokenName) !== null && _o !== void 0 ? _o : bond.payoutTokenName, size: 30 })] })) })), _jsx(Flex, __assign({ className: "title-container tokenname-small" }, { children: bond === null || bond === void 0 ? void 0 : bond.principalTokenName }))] }))] })), isActive && account && (_jsxs(Flex, __assign({ className: "input-container balancerow" }, { children: [_jsx(Flex, __assign({ className: "balancerow text" }, { children: "Balance: BALANCE NUMBER PLACEHOLDER" })), _jsx(Flex, __assign({ className: "balancerow max" }, { children: _jsx(Button, { children: "Max" }) }))] })))] })), _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 ?
|
|
212
212
|
_jsxs(Button, __assign({ onClick: handleBuy }, { children: ["Buy ", bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName] }))
|
|
213
213
|
:
|
|
214
214
|
_jsx(Button, __assign({ onClick: handleApprove }, { children: "Approve" })) }))] }))] }))] })) })) }, bond.billAddress));
|
package/dist/scss/BondModal.scss
CHANGED
|
@@ -313,10 +313,13 @@
|
|
|
313
313
|
.input-container.balancerow {
|
|
314
314
|
flex-direction: row;
|
|
315
315
|
align-items: center;
|
|
316
|
+
justify-content: end;
|
|
316
317
|
}
|
|
317
318
|
|
|
318
319
|
.balancerow.text {
|
|
320
|
+
opacity: 0.8;
|
|
319
321
|
align-items: center;
|
|
322
|
+
font-size: 12px;
|
|
320
323
|
}
|
|
321
324
|
|
|
322
325
|
.balancerow.max {
|
|
@@ -325,16 +328,19 @@
|
|
|
325
328
|
|
|
326
329
|
Button {
|
|
327
330
|
background: var(--theme-ui-colors-primaryButton);
|
|
328
|
-
align-items: center;
|
|
329
|
-
justify-content: center;
|
|
330
331
|
height: 22px;
|
|
331
|
-
padding:
|
|
332
|
+
padding-left: 8px;
|
|
333
|
+
padding-right: 8px;
|
|
332
334
|
cursor: 'pointer';
|
|
333
335
|
font-size: 12px;
|
|
334
336
|
font-weight: 600;
|
|
335
337
|
border-radius: small;
|
|
336
338
|
margin-left: 10px;
|
|
337
339
|
transition: 'all .3s linear';
|
|
340
|
+
display: flex;
|
|
341
|
+
align-items: center;
|
|
342
|
+
justify-content: center;
|
|
343
|
+
|
|
338
344
|
&:active {
|
|
339
345
|
transform: scale(0.9);
|
|
340
346
|
}
|