@ape.swap/bonds-sdk 1.0.752 → 1.0.753
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,14 +12,14 @@ 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
|
+
}
|
|
15
19
|
var BondRow = function (_a) {
|
|
16
20
|
// const navigate = useNavigate();
|
|
17
21
|
var _b, _c, _d;
|
|
18
22
|
var bond = _a.bond, hotBonds = _a.hotBonds;
|
|
19
|
-
function useForceUpdate() {
|
|
20
|
-
var _a = useState(0), value = _a[0], setValue = _a[1];
|
|
21
|
-
return function () { return setValue(function (value) { return value + 1; }); };
|
|
22
|
-
}
|
|
23
23
|
// Modal
|
|
24
24
|
var _e = useState(false), isModalOpen = _e[0], setIsModalOpen = _e[1];
|
|
25
25
|
var _f = useState(null), selectedBond = _f[0], setSelectedBond = _f[1];
|
|
@@ -30,7 +30,7 @@ var BondRow = function (_a) {
|
|
|
30
30
|
var newUrl = "/?bondAddress=".concat(bond.billAddress, "&bondChain=").concat(bond.chainId);
|
|
31
31
|
window.history.pushState({ path: newUrl }, '', newUrl);
|
|
32
32
|
}
|
|
33
|
-
useForceUpdate();
|
|
33
|
+
var forceUpdate = useForceUpdate();
|
|
34
34
|
console.log('row clicked');
|
|
35
35
|
console.log(bond);
|
|
36
36
|
console.log('isModalOpen:', isModalOpen);
|