diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-04 13:43:09 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-04 13:43:09 -0700 |
commit | 4b1d10f3bae1f1c80ecf74993f18f318c7b22b7f (patch) | |
tree | 14fea811fe4778e38aadacb6289a7b33a10e0829 /extension/react-app/src/components/UserInputContainer.tsx | |
parent | 7336c1cec7475f3b17d1860f11461e2f23a24049 (diff) | |
download | sncontinue-4b1d10f3bae1f1c80ecf74993f18f318c7b22b7f.tar.gz sncontinue-4b1d10f3bae1f1c80ecf74993f18f318c7b22b7f.tar.bz2 sncontinue-4b1d10f3bae1f1c80ecf74993f18f318c7b22b7f.zip |
many fixes
Diffstat (limited to 'extension/react-app/src/components/UserInputContainer.tsx')
-rw-r--r-- | extension/react-app/src/components/UserInputContainer.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extension/react-app/src/components/UserInputContainer.tsx b/extension/react-app/src/components/UserInputContainer.tsx index 59453169..44fdba38 100644 --- a/extension/react-app/src/components/UserInputContainer.tsx +++ b/extension/react-app/src/components/UserInputContainer.tsx @@ -6,10 +6,12 @@ import HeaderButtonWithText from "./HeaderButtonWithText"; import { Play, XMark } from "@styled-icons/heroicons-outline"; import { RootStore } from "../redux/store"; import { useSelector } from "react-redux"; +import { HistoryNode } from "../../../schema/HistoryNode"; interface UserInputContainerProps { onDelete: () => void; children: string; + historyNode: HistoryNode; } const StyledDiv = styled.div` @@ -26,7 +28,7 @@ const StyledDiv = styled.div` const UserInputContainer = (props: UserInputContainerProps) => { return ( - <StyledDiv> + <StyledDiv hidden={props.historyNode.step.hide as any}> {props.children} <div style={{ marginLeft: "auto" }}> <HeaderButtonWithText @@ -36,7 +38,7 @@ const UserInputContainer = (props: UserInputContainerProps) => { }} text="Delete" > - <XMark size="1.6em" onClick={props.onDelete} /> + <XMark size="1.6em" /> </HeaderButtonWithText> </div> </StyledDiv> |