Skip to content

Commit

Permalink
Use chain scan height on header
Browse files Browse the repository at this point in the history
  • Loading branch information
wliyongfeng committed Oct 22, 2024
1 parent 6f478b5 commit deb1919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next-common/components/header/networkSwitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import Loading from "../loading";
import useWindowSize from "../../utils/hooks/useWindowSize";
import ChainIcon from "./chainIcon";
import { ArrowDown } from "@osn/icons/subsquare";
import chainOrScanHeightSelector from "next-common/store/reducers/selectors/height";
import dynamicClientOnly from "next-common/lib/dynamic/clientOnly";
import { useClickAway } from "react-use";
import { nodesHeightSelector } from "next-common/store/reducers/nodeSlice";

const NetworkOptions = dynamicClientOnly(() => import("./networkOptions"));

Expand Down Expand Up @@ -61,7 +61,7 @@ export default function NetworkSwitch({ activeNode }) {
const [show, setShow] = useState(false);
const ref = useRef();
const windowSize = useWindowSize();
const nodesHeight = useSelector(chainOrScanHeightSelector);
const nodesHeight = useSelector(nodesHeightSelector);

useClickAway(ref, () => setShow(false));

Expand Down

0 comments on commit deb1919

Please sign in to comment.