summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-13 23:45:49 -0700
committerNate Sesti <sestinj@gmail.com>2023-06-13 23:45:49 -0700
commit9100f116d0c28b231c0b746f60b8d59e00546456 (patch)
tree96d8828ac0666fdacebb4d42cd15c68dbea4a1f3 /extension/react-app/src/components
parent122b63daeec6cb35d401eccd660759e1745f6778 (diff)
downloadsncontinue-9100f116d0c28b231c0b746f60b8d59e00546456.tar.gz
sncontinue-9100f116d0c28b231c0b746f60b8d59e00546456.tar.bz2
sncontinue-9100f116d0c28b231c0b746f60b8d59e00546456.zip
Small fixes
Diffstat (limited to 'extension/react-app/src/components')
-rw-r--r--extension/react-app/src/components/TextDialog.tsx10
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>
);