mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 16:38:21 +01:00
Migrate conversations to ESLint
This commit is contained in:
committed by
Josh Perez
parent
b4f0f3c685
commit
372aa44e49
@@ -27,7 +27,7 @@ type PropsHousekeeping = {
|
||||
export type Props = PropsData & PropsHousekeeping;
|
||||
|
||||
export class VerificationNotification extends React.Component<Props> {
|
||||
public getStringId() {
|
||||
public getStringId(): string {
|
||||
const { isLocal, type } = this.props;
|
||||
|
||||
switch (type) {
|
||||
@@ -44,7 +44,7 @@ export class VerificationNotification extends React.Component<Props> {
|
||||
}
|
||||
}
|
||||
|
||||
public renderContents() {
|
||||
public renderContents(): JSX.Element {
|
||||
const { contact, i18n } = this.props;
|
||||
const id = this.getStringId();
|
||||
|
||||
@@ -67,7 +67,7 @@ export class VerificationNotification extends React.Component<Props> {
|
||||
);
|
||||
}
|
||||
|
||||
public render() {
|
||||
public render(): JSX.Element {
|
||||
const { type } = this.props;
|
||||
const suffix =
|
||||
type === 'markVerified' ? 'mark-verified' : 'mark-not-verified';
|
||||
|
||||
Reference in New Issue
Block a user