@ape.swap/bonds-sdk 1.0.680 → 1.0.682

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.
@@ -1,20 +1,13 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
1
+ import { jsx as _jsx } from "theme-ui/jsx-runtime";
2
2
  import BondRowsWithTitle from './BondRowsWithTitle';
3
- import { ChainId } from '../../enum/apeswaplists';
4
3
  import { Flex } from '../uikit-sdk';
5
4
  import { MAINNET_CHAINS } from '../../config/constants/chains';
6
5
  import '../../scss/BondRowsByChain.scss';
7
6
  var BondRowsByChain = function (_a) {
8
7
  var bonds = _a.bonds, hotBonds = _a.hotBonds, hideTitles = _a.hideTitles, rowClick = _a.rowClick, chains = _a.chains;
9
- return (_jsxs(Flex, { className: "bondrowsbychain", children: [!chains || chains.includes(ChainId.MAINNET) &&
10
- [ChainId.MAINNET].map(function (chain, index) {
11
- return (_jsx(BondRowsWithTitle, { chain: chain, bonds: bonds, hotBonds: hotBonds, hideTitles: hideTitles, rowClick: rowClick }, chain));
12
- }), !chains || chains.includes(ChainId.BSC) &&
13
- [ChainId.BSC].map(function (chain, index) {
14
- return (_jsx(BondRowsWithTitle, { chain: chain, bonds: bonds, hotBonds: hotBonds, hideTitles: hideTitles, rowClick: rowClick }, chain));
15
- }), (MAINNET_CHAINS.slice(2, MAINNET_CHAINS.length).map(function (chain, index) {
16
- return (!chains || chains.includes(chain) &&
17
- _jsx(BondRowsWithTitle, { chain: chain, bonds: bonds, hotBonds: hotBonds, hideTitles: hideTitles, rowClick: rowClick }, chain));
18
- }))] }));
8
+ return (_jsx(Flex, { className: "bondrowsbychain", children: (MAINNET_CHAINS.map(function (chain, index) {
9
+ return (!chains || chains.length === 0 || chains.includes(chain) &&
10
+ _jsx(BondRowsWithTitle, { chain: chain, bonds: bonds, hotBonds: hotBonds, hideTitles: hideTitles, rowClick: rowClick }, chain));
11
+ })) }));
19
12
  };
20
13
  export default BondRowsByChain;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "1.0.680",
6
+ "version": "1.0.682",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",