mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-21 17:08:11 +01:00
Migrate conversations to ESLint
This commit is contained in:
committed by
Josh Perez
parent
b4f0f3c685
commit
372aa44e49
@@ -22,7 +22,7 @@ type PropsHousekeeping = {
|
||||
export type Props = PropsData & PropsHousekeeping;
|
||||
|
||||
export class TimerNotification extends React.Component<Props> {
|
||||
public renderContents() {
|
||||
public renderContents(): JSX.Element | string | null {
|
||||
const {
|
||||
i18n,
|
||||
name,
|
||||
@@ -71,13 +71,13 @@ export class TimerNotification extends React.Component<Props> {
|
||||
? i18n('disappearingMessagesDisabledByMember')
|
||||
: i18n('timerSetByMember', [timespan]);
|
||||
default:
|
||||
console.warn('TimerNotification: unsupported type provided:', type);
|
||||
window.log.warn('TimerNotification: unsupported type provided:', type);
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public render() {
|
||||
public render(): JSX.Element {
|
||||
const { timespan, disabled } = this.props;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user