diff --git a/src/account-info/ProfileCard.js b/src/account-info/ProfileCard.js index 3772fa887b4..e2298cbd161 100644 --- a/src/account-info/ProfileCard.js +++ b/src/account-info/ProfileCard.js @@ -26,7 +26,7 @@ const styles = StyleSheet.create({ }, }); -class SetStatusButton extends PureComponent<{| dispatch: Dispatch |}> { +class SetStatusButton extends PureComponent<{| +dispatch: Dispatch |}> { onPress = () => { const { dispatch } = this.props; dispatch(navigateToUserStatus()); @@ -39,7 +39,7 @@ class SetStatusButton extends PureComponent<{| dispatch: Dispatch |}> { } } -class SwitchAccountButton extends PureComponent<{| dispatch: Dispatch |}> { +class SwitchAccountButton extends PureComponent<{| +dispatch: Dispatch |}> { onPress = () => { this.props.dispatch(navigateToAccountPicker()); }; @@ -51,7 +51,7 @@ class SwitchAccountButton extends PureComponent<{| dispatch: Dispatch |}> { } } -class LogoutButton extends PureComponent<{| dispatch: Dispatch |}> { +class LogoutButton extends PureComponent<{| +dispatch: Dispatch |}> { onPress = () => { const { dispatch } = this.props; dispatch(tryStopNotifications()); diff --git a/src/boot/TranslationProvider.js b/src/boot/TranslationProvider.js index d86896c8d99..22a9fc207ca 100644 --- a/src/boot/TranslationProvider.js +++ b/src/boot/TranslationProvider.js @@ -54,7 +54,7 @@ const makeGetText = (intl: IntlShape): GetText => { * vs. https://reactjs.org/docs/legacy-context.html . */ class TranslationContextTranslator extends PureComponent<{ - children: React$Node, + +children: React$Node, }> { context: { intl: IntlShape }; diff --git a/src/common/InputWithClearButton.js b/src/common/InputWithClearButton.js index 939096f870a..1afbb2b4cb4 100644 --- a/src/common/InputWithClearButton.js +++ b/src/common/InputWithClearButton.js @@ -14,7 +14,7 @@ const componentStyles = StyleSheet.create({ }, }); -type Props = $Diff; +type Props = $ReadOnly<$Diff>; type State = {| canBeCleared: boolean, diff --git a/src/common/PasswordInput.js b/src/common/PasswordInput.js index 3d9e624c354..918015829cc 100644 --- a/src/common/PasswordInput.js +++ b/src/common/PasswordInput.js @@ -24,10 +24,10 @@ const styles = StyleSheet.create({ // Prettier wants a ", >" here, which is silly. // prettier-ignore -type Props = $Diff; + { secureTextEntry: mixed, autoCorrect: mixed, autoCapitalize: mixed }>>; type State = {| isHidden: boolean,