@ape.swap/bonds-sdk 1.0.754 → 1.0.755

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.
@@ -12,25 +12,18 @@ import { BLOCK_EXPLORER } from "../../config/constants/chains";
12
12
  import { useState } from "react";
13
13
  import '../../scss/BondRow.scss';
14
14
  import { Flex } from "theme-ui";
15
- function useForceUpdate() {
16
- var _a = useState(0), value = _a[0], setValue = _a[1];
17
- return function () { return setValue(function (value) { return value + 1; }); };
18
- }
19
15
  var BondRow = function (_a) {
20
16
  // const navigate = useNavigate();
21
17
  var _b, _c, _d;
22
18
  var bond = _a.bond, hotBonds = _a.hotBonds;
23
19
  // Modal
24
20
  var _e = useState(false), isModalOpen = _e[0], setIsModalOpen = _e[1];
25
- var _f = useState(null), selectedBond = _f[0], setSelectedBond = _f[1];
26
21
  var rowClick = function (bond) {
27
- setSelectedBond(bond);
28
22
  setIsModalOpen(true);
29
23
  if (typeof window !== "undefined") {
30
24
  var newUrl = "/?bondAddress=".concat(bond.billAddress, "&bondChain=").concat(bond.chainId);
31
25
  window.history.pushState({ path: newUrl }, '', newUrl);
32
26
  }
33
- var forceUpdate = useForceUpdate();
34
27
  console.log('row clicked');
35
28
  console.log(bond);
36
29
  console.log('isModalOpen:', isModalOpen);
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.754",
6
+ "version": "1.0.755",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",