@ape.swap/bonds-sdk 1.0.431 → 1.0.432

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.
@@ -10,38 +10,11 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
13
- import { useEffect, useRef, useState } from 'react';
14
13
  import { Flex } from '../../../components/uikit-sdk';
15
14
  import { ChainId, MAINNET_CHAINS } from '../../../config/constants/chains';
16
15
  import BondRowsWithTitle from './BondRowsWithTitle';
17
16
  var BondRowsByChain = function (_a) {
18
17
  var bonds = _a.bonds, hotBonds = _a.hotBonds, rowClick = _a.rowClick;
19
- //used to render list only on client
20
- var _b = useState(false), show = _b[0], setShow = _b[1];
21
- var observerRef = useRef(null);
22
- useEffect(function () {
23
- var observer;
24
- observer = new IntersectionObserver(function (_a) {
25
- var entry = _a[0];
26
- if (entry.isIntersecting) {
27
- setShow(true);
28
- if (observer) {
29
- observer.disconnect();
30
- }
31
- }
32
- }, {
33
- rootMargin: '0px',
34
- threshold: 1,
35
- });
36
- if (observerRef.current) {
37
- observer.observe(observerRef.current);
38
- }
39
- return function () {
40
- if (observer) {
41
- observer.disconnect();
42
- }
43
- };
44
- }, []);
45
18
  return (_jsxs(Flex, __assign({ sx: { width: '100%', flexDirection: 'column', mt: '5px' } }, { children: [[ChainId.MAINNET].map(function (chain, index) {
46
19
  return (_jsx(BondRowsWithTitle, { chain: chain, bonds: bonds, hotBonds: hotBonds, rowClick: rowClick }, chain));
47
20
  }), [ChainId.BSC].map(function (chain, index) {
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.431",
6
+ "version": "1.0.432",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",