@ape.swap/bonds-sdk 1.0.403 → 1.0.404
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.
|
@@ -65,7 +65,7 @@ import getTimePeriods from '../../utils/getTimePeriods';
|
|
|
65
65
|
import { defaultTheme } from '../../theme';
|
|
66
66
|
import '../../scss/YourBonds.scss';
|
|
67
67
|
import { BigNumber } from 'bignumber.js';
|
|
68
|
-
import { Text, Button
|
|
68
|
+
import { Text, Button } from '../uikit-sdk';
|
|
69
69
|
import { MAINNET_CHAINS } from '../../config/constants/chains';
|
|
70
70
|
import TokenInfoAndName from '../TokenInfoAndName';
|
|
71
71
|
import { getBalanceNumber } from '../../utils/getBalanceNumber';
|
|
@@ -237,7 +237,11 @@ var YourBonds = function (_a) {
|
|
|
237
237
|
setIsModalOpen(true);
|
|
238
238
|
navigate("/YourBonds/?bondAddress=".concat(bill.address, "&bondChain=").concat(bill.bond.chainId), { replace: true });
|
|
239
239
|
};
|
|
240
|
-
return (_jsxs(ThemeUIProvider, __assign({ theme: defaultTheme }, { children: [isActive && account && _jsx("p", { children: account }), isActive && account && _jsx("button", __assign({ onClick: handleApprove }, { children: "Approve USDT" })), _jsxs(Flex, __assign({ className: "container table-container" }, { children: [_jsxs(Flex, __assign({ className: "container header-container" }, { children: [_jsx(Flex, __assign({ className: "column column-tokens" }, { children: _jsx(
|
|
240
|
+
return (_jsxs(ThemeUIProvider, __assign({ theme: defaultTheme }, { children: [isActive && account && _jsx("p", { children: account }), isActive && account && _jsx("button", __assign({ onClick: handleApprove }, { children: "Approve USDT" })), _jsxs(Flex, __assign({ className: "container table-container" }, { children: [_jsxs(Flex, __assign({ className: "container header-container" }, { children: [_jsx(Flex, __assign({ className: "column column-tokens" }, { children: _jsx(Text, { children: "Token Info" }) })), _jsxs(Flex, __assign({ className: "column column-bondinfo" }, { children: [_jsx(Flex, __assign({ className: "column column-claimable" }, { children: _jsx(Text, { children: "Claimable" }) })), _jsx(Flex, __assign({ className: "column column-pending" }, { children: _jsx(Text, { children: "Pending" }) })), _jsx(Flex, __assign({ className: "column column-terms" }, { children: _jsx(Text, { children: "Terms" }) })), _jsx(Flex, __assign({ className: "column column-claimall" }, { children: _jsx(Button, __assign({ disabled: !account, onClick: function (event) {
|
|
241
|
+
event.stopPropagation();
|
|
242
|
+
// Add your claim all logic here
|
|
243
|
+
}, sx: {
|
|
244
|
+
zIndex: 10,
|
|
241
245
|
height: ['36px', '36px', '36px', '26px'],
|
|
242
246
|
lineHeight: '12px',
|
|
243
247
|
fontSize: '14px',
|
|
@@ -249,12 +253,13 @@ var YourBonds = function (_a) {
|
|
|
249
253
|
event.stopPropagation();
|
|
250
254
|
// Add your claim logic here
|
|
251
255
|
}, sx: {
|
|
256
|
+
zIndex: 10,
|
|
252
257
|
height: ['36px', '36px', '36px', '26px'],
|
|
253
258
|
lineHeight: '12px',
|
|
254
259
|
fontSize: '14px',
|
|
255
260
|
fontWeight: 600,
|
|
256
261
|
width: '100%',
|
|
257
|
-
} }, { children: "
|
|
262
|
+
} }, { children: "CLAIM" })) }))] }))] }), bill.bond.billAddress));
|
|
258
263
|
})] }))] })));
|
|
259
264
|
};
|
|
260
265
|
export default YourBonds;
|
package/dist/scss/YourBonds.scss
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
display: flex;
|
|
14
14
|
flex-direction: row;
|
|
15
15
|
width: 100%;
|
|
16
|
-
height:
|
|
16
|
+
height: 30px;
|
|
17
17
|
justify-content: space-around;
|
|
18
18
|
margin-bottom: 5px;
|
|
19
19
|
border-radius: 10px;
|
|
@@ -35,10 +35,6 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.column {
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
38
|
.column.column-tokens {
|
|
43
39
|
display: flex;
|
|
44
40
|
align-items: center;
|