@ape.swap/bonds-sdk 1.0.404 → 1.0.406
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 } from '../uikit-sdk';
|
|
68
|
+
import { Text, Button, Svg } 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,11 +237,7 @@ 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(
|
|
241
|
-
event.stopPropagation();
|
|
242
|
-
// Add your claim all logic here
|
|
243
|
-
}, sx: {
|
|
244
|
-
zIndex: 10,
|
|
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(Flex, { className: "column column-tokeninfoname" }) })), _jsxs(Flex, __assign({ className: "column column-bondinfo" }, { children: [_jsxs(Flex, __assign({ className: "column header-claimable" }, { children: [_jsx(Text, __assign({ sx: { opacity: '0.6', fontSize: '12px' } }, { children: "Claimable" })), _jsx(Flex, __assign({ className: "column header-icon", sx: { opacity: '0.6' }, onClick: function () { return handleSort('claimable'); } }, { children: _jsx(Svg, { icon: "sort", width: "12px" }) }))] })), _jsxs(Flex, __assign({ className: "column header-pending" }, { children: [_jsx(Text, __assign({ sx: { opacity: '0.6', fontSize: '12px' } }, { children: "Pending" })), _jsx(Flex, __assign({ className: "column header-icon", sx: { opacity: '0.6' }, onClick: function () { return handleSort('pending'); } }, { children: _jsx(Svg, { icon: "sort", width: "12px" }) }))] })), _jsxs(Flex, __assign({ className: "column header-terms" }, { children: [_jsx(Text, __assign({ sx: { opacity: '0.6', fontSize: '12px' } }, { children: "Terms" })), _jsx(Flex, __assign({ className: "column header-icon", sx: { opacity: '0.6' }, onClick: function () { return handleSort('terms'); } }, { children: _jsx(Svg, { icon: "sort", width: "12px" }) }))] })), _jsx(Flex, __assign({ className: "column header-claimall" }, { children: _jsx(Button, __assign({ disabled: !account, sx: {
|
|
245
241
|
height: ['36px', '36px', '36px', '26px'],
|
|
246
242
|
lineHeight: '12px',
|
|
247
243
|
fontSize: '14px',
|
|
@@ -253,13 +249,12 @@ var YourBonds = function (_a) {
|
|
|
253
249
|
event.stopPropagation();
|
|
254
250
|
// Add your claim logic here
|
|
255
251
|
}, sx: {
|
|
256
|
-
zIndex: 10,
|
|
257
252
|
height: ['36px', '36px', '36px', '26px'],
|
|
258
253
|
lineHeight: '12px',
|
|
259
254
|
fontSize: '14px',
|
|
260
255
|
fontWeight: 600,
|
|
261
256
|
width: '100%',
|
|
262
|
-
} }, { children: "
|
|
257
|
+
} }, { children: "Claim" })) }))] }))] }), bill.bond.billAddress));
|
|
263
258
|
})] }))] })));
|
|
264
259
|
};
|
|
265
260
|
export default YourBonds;
|
package/dist/scss/YourBonds.scss
CHANGED