diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-25 13:44:31 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-25 13:44:31 -0700 |
commit | 8db3dcb7b9f138b09d7cceedfa830fd150795b30 (patch) | |
tree | 8a87781af84b4acaf3bec75be7d42e93796b25cf /extension | |
parent | 54048d3e7bda9c39cc08888b37e0c7dc0716a713 (diff) | |
download | sncontinue-8db3dcb7b9f138b09d7cceedfa830fd150795b30.tar.gz sncontinue-8db3dcb7b9f138b09d7cceedfa830fd150795b30.tar.bz2 sncontinue-8db3dcb7b9f138b09d7cceedfa830fd150795b30.zip |
don't call python function, other
Diffstat (limited to 'extension')
-rw-r--r-- | extension/react-app/src/components/HeaderButtonWithText.tsx | 2 | ||||
-rw-r--r-- | extension/react-app/src/components/StepContainer.tsx | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/extension/react-app/src/components/HeaderButtonWithText.tsx b/extension/react-app/src/components/HeaderButtonWithText.tsx index acaca9ce..5901c5d8 100644 --- a/extension/react-app/src/components/HeaderButtonWithText.tsx +++ b/extension/react-app/src/components/HeaderButtonWithText.tsx @@ -6,12 +6,14 @@ interface HeaderButtonWithTextProps { text: string; onClick?: (e: any) => void; children: React.ReactNode; + disabled?: boolean; } const HeaderButtonWithText = (props: HeaderButtonWithTextProps) => { const [hover, setHover] = useState(false); return ( <HeaderButton + disabled={props.disabled} style={{ padding: "1px", paddingLeft: hover ? "4px" : "1px" }} onMouseEnter={() => setHover(true)} onMouseLeave={() => { diff --git a/extension/react-app/src/components/StepContainer.tsx b/extension/react-app/src/components/StepContainer.tsx index 74a1c4e8..827d2d5f 100644 --- a/extension/react-app/src/components/StepContainer.tsx +++ b/extension/react-app/src/components/StepContainer.tsx @@ -200,6 +200,7 @@ function StepContainer(props: StepContainerProps) { <> <HeaderButtonWithText + disabled={props.historyNode.active as boolean} onClick={(e) => { e.stopPropagation(); props.onDelete(); |