Migrate components to eslint

This commit is contained in:
Chris Svenningsen 2020-09-11 17:46:52 -07:00 committed by Josh Perez
parent de66486e41
commit b13dbcfa77
69 changed files with 875 additions and 800 deletions

View file

@ -39,7 +39,7 @@ const SafetyDialogContents = ({
if (cancelButtonRef && cancelButtonRef.current) {
cancelButtonRef.current.focus();
}
}, [contacts]);
}, [cancelButtonRef, contacts]);
return (
<>
@ -88,6 +88,7 @@ const SafetyDialogContents = ({
onView(contact);
}}
tabIndex={0}
type="button"
>
{i18n('view')}
</button>
@ -101,6 +102,7 @@ const SafetyDialogContents = ({
onClick={onCancel}
ref={cancelButtonRef}
tabIndex={0}
type="button"
>
{i18n('cancel')}
</button>
@ -108,6 +110,7 @@ const SafetyDialogContents = ({
className="module-sfn-dialog__actions--confirm"
onClick={onConfirm}
tabIndex={0}
type="button"
>
{confirmText || i18n('sendMessageToContact')}
</button>