diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-13 23:45:49 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-13 23:45:49 -0700 |
commit | 64b2715796da94415461b740f8cc5663944632ee (patch) | |
tree | e6f887099df16ece834e0e7189d46ff4003b7c95 /extension/react-app | |
parent | 114015518f41ed4eb00308f4bf72b89133091b9f (diff) | |
download | sncontinue-64b2715796da94415461b740f8cc5663944632ee.tar.gz sncontinue-64b2715796da94415461b740f8cc5663944632ee.tar.bz2 sncontinue-64b2715796da94415461b740f8cc5663944632ee.zip |
Small fixes
Diffstat (limited to 'extension/react-app')
-rw-r--r-- | extension/react-app/src/components/TextDialog.tsx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/extension/react-app/src/components/TextDialog.tsx b/extension/react-app/src/components/TextDialog.tsx index 6b335e00..167e12cf 100644 --- a/extension/react-app/src/components/TextDialog.tsx +++ b/extension/react-app/src/components/TextDialog.tsx @@ -47,7 +47,15 @@ const TextDialog = (props: { <Dialog> <P>Thanks for your feedback. We'll get back to you soon!</P> <TextArea cols={50} rows={10} ref={textAreaRef}></TextArea> - <Button onClick={() => props.onEnter(text)}>Enter</Button> + <Button + onClick={() => { + if (textAreaRef.current) { + props.onEnter(textAreaRef.current.value); + } + }} + > + Enter + </Button> </Dialog> </DialogContainer> ); |