diff options
author | Sascha <GlancingMind@outlook.com> | 2021-03-19 16:06:41 +0100 |
---|---|---|
committer | Sascha <GlancingMind@outlook.com> | 2021-03-19 17:53:22 +0100 |
commit | 5b562559e36d07888e888d014db5130a80be4519 (patch) | |
tree | 1d682fe8c614a5801c3b54f6ddec462a6c87e34e /webui/src/pages | |
parent | bd316ef9efc5485513d8f2ceeca3938eb0c5b30f (diff) | |
download | git-bug-5b562559e36d07888e888d014db5130a80be4519.tar.gz |
Fix eslint pipeline fail hopefully
Diffstat (limited to 'webui/src/pages')
-rw-r--r-- | webui/src/pages/bug/EditCommentForm.tsx | 8 | ||||
-rw-r--r-- | webui/src/pages/bug/Message.tsx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/webui/src/pages/bug/EditCommentForm.tsx b/webui/src/pages/bug/EditCommentForm.tsx index 0794c3ef..8fa659b3 100644 --- a/webui/src/pages/bug/EditCommentForm.tsx +++ b/webui/src/pages/bug/EditCommentForm.tsx @@ -42,11 +42,11 @@ const useStyles = makeStyles<Theme, StyleProps>((theme) => ({ type Props = { bug: BugFragment; comment: AddCommentFragment | CreateFragment; - onCancelClick?: () => void; + onCancel?: () => void; onPostSubmit?: (comments: any) => void; }; -function EditCommentForm({ bug, comment, onCancelClick, onPostSubmit }: Props) { +function EditCommentForm({ bug, comment, onCancel, onPostSubmit }: Props) { const [editComment, { loading }] = useEditCommentMutation(); const [message, setMessage] = useState<string>(comment.message); const [inputProp, setInputProp] = useState<any>(''); @@ -88,7 +88,7 @@ function EditCommentForm({ bug, comment, onCancelClick, onPostSubmit }: Props) { function getCancelButton() { return ( - <Button onClick={onCancelClick} variant="contained"> + <Button onClick={onCancel} variant="contained"> Cancel </Button> ); @@ -104,7 +104,7 @@ function EditCommentForm({ bug, comment, onCancelClick, onPostSubmit }: Props) { inputText={comment.message} /> <div className={classes.actions}> - {onCancelClick ? getCancelButton() : ''} + {onCancel && getCancelButton()} <Button className={classes.greenButton} variant="contained" diff --git a/webui/src/pages/bug/Message.tsx b/webui/src/pages/bug/Message.tsx index 51f45a4b..22cce9b1 100644 --- a/webui/src/pages/bug/Message.tsx +++ b/webui/src/pages/bug/Message.tsx @@ -176,7 +176,7 @@ function Message({ bug, op }: Props) { <div className={classes.bubble}> <EditCommentForm bug={bug} - onCancelClick={cancelEdition} + onCancel={cancelEdition} onPostSubmit={onPostSubmit} comment={comment} /> |