diff options
author | Ty Dunn <ty@tydunn.com> | 2023-07-04 21:37:39 -0700 |
---|---|---|
committer | Ty Dunn <ty@tydunn.com> | 2023-07-04 21:37:39 -0700 |
commit | 26f147d2fdd5412117445c97a937c49b064da082 (patch) | |
tree | 0dd728f2ce806d0dba2dc15a65a26f2c58562a74 /extension/react-app/src/components/UserInputContainer.tsx | |
parent | d802dae10b26f59893380829feea3104b0650e14 (diff) | |
parent | 2d8c28965684d03ef711253e5555ef304882828f (diff) | |
download | sncontinue-26f147d2fdd5412117445c97a937c49b064da082.tar.gz sncontinue-26f147d2fdd5412117445c97a937c49b064da082.tar.bz2 sncontinue-26f147d2fdd5412117445c97a937c49b064da082.zip |
Merge branch 'main' into stop
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> |