remove unused variable
This commit is contained in:
parent
248e7a1f9e
commit
d121f5c39c
1 changed files with 0 additions and 7 deletions
|
@ -62,10 +62,6 @@ export function CommentCreate(props: Props) {
|
||||||
setCommentValue(commentValue);
|
setCommentValue(commentValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleCommentAck() {
|
|
||||||
setCommentAck(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
function altEnterListener(e: SyntheticKeyboardEvent<*>) {
|
function altEnterListener(e: SyntheticKeyboardEvent<*>) {
|
||||||
if (e.shiftKey && e.keyCode === 13) {
|
if (e.shiftKey && e.keyCode === 13) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -75,9 +71,6 @@ export function CommentCreate(props: Props) {
|
||||||
|
|
||||||
function onTextareaFocus() {
|
function onTextareaFocus() {
|
||||||
window.addEventListener('keydown', altEnterListener);
|
window.addEventListener('keydown', altEnterListener);
|
||||||
if (!commentAck) {
|
|
||||||
openModal(MODALS.COMMENT_ACKNOWEDGEMENT, { onCommentAcknowledge: handleCommentAck });
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onTextareaBlur() {
|
function onTextareaBlur() {
|
||||||
|
|
Loading…
Reference in a new issue