mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 19:08:04 +01:00
Migrate components to eslint
This commit is contained in:
committed by
Josh Perez
parent
de66486e41
commit
b13dbcfa77
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user