Skip to content

Commit

Permalink
Display simulator none when collapsed
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-grace committed Apr 4, 2024
1 parent bb77f91 commit 11886ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/SplitView/SplitViewSized.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import { createRef, useEffect } from "react";
import { dimensionPropName, useSplitViewContext } from "./context";
import { Box } from "@chakra-ui/layout";
import { Collapse } from "@chakra-ui/react";

Check failure on line 9 in src/common/SplitView/SplitViewSized.tsx

View workflow job for this annotation

GitHub Actions / build

'Collapse' is declared but its value is never read.

interface SizedPaneProps {
children: JSX.Element;
Expand Down Expand Up @@ -38,6 +39,7 @@ const SplitViewSized = ({ children }: SizedPaneProps) => {
return (
<Box
pointerEvents={dragging ? "none" : "unset"}
display={mode === "collapsed" ? "none" : undefined}
visibility={mode === "collapsed" ? "hidden" : undefined}
ref={ref}
>
Expand Down

0 comments on commit 11886ee

Please sign in to comment.