From 298eeafdbab17371b77d68ef951bd004e713c507 Mon Sep 17 00:00:00 2001 From: Sofiya Tepikin Date: Wed, 10 Aug 2022 16:17:10 +0200 Subject: [PATCH] Fixes linter failing --- components/app.js | 1 + components/settings/password/create.js | 5 +++++ components/settings/password/delete.js | 1 + components/settings/password/enter-new-password.js | 4 ++++ components/settings/password/index.js | 5 +++++ components/settings/password/update.js | 1 + package-lock.json | 6 +++--- 7 files changed, 20 insertions(+), 3 deletions(-) diff --git a/components/app.js b/components/app.js index 082fb28..83afdf9 100644 --- a/components/app.js +++ b/components/app.js @@ -22,6 +22,7 @@ class App extends Component { navigation: PropTypes.object.isRequired, navigate: PropTypes.func, goBack: PropTypes.func, + restartApp: PropTypes.func, } constructor(props) { diff --git a/components/settings/password/create.js b/components/settings/password/create.js index ba358e5..f024c3f 100644 --- a/components/settings/password/create.js +++ b/components/settings/password/create.js @@ -1,4 +1,5 @@ import React, { Component } from 'react' +import PropTypes from 'prop-types' import Button from '../../common/button' @@ -8,6 +9,10 @@ import showBackUpReminder from './show-backup-reminder' import settings from '../../../i18n/en/settings' export default class CreatePassword extends Component { + static propTypes = { + changeEncryptionAndRestart: PropTypes.func, + } + constructor() { super() diff --git a/components/settings/password/delete.js b/components/settings/password/delete.js index 593efca..d195c99 100644 --- a/components/settings/password/delete.js +++ b/components/settings/password/delete.js @@ -10,6 +10,7 @@ export default class DeletePassword extends Component { static propTypes = { onStartDelete: PropTypes.func, onCancelDelete: PropTypes.func, + changeEncryptionAndRestart: PropTypes.func, } constructor() { diff --git a/components/settings/password/enter-new-password.js b/components/settings/password/enter-new-password.js index 75890f7..a593e13 100644 --- a/components/settings/password/enter-new-password.js +++ b/components/settings/password/enter-new-password.js @@ -1,6 +1,7 @@ import React, { Component } from 'react' import { StyleSheet } from 'react-native' import nodejs from 'nodejs-mobile-react-native' +import PropTypes from 'prop-types' import AppText from '../../common/app-text' import AppTextInput from '../../common/app-text-input' @@ -13,6 +14,9 @@ import settings from '../../../i18n/en/settings' const LISTENER_TYPE = 'create-or-change-pw' export default class EnterNewPassword extends Component { + static propTypes = { + changeEncryptionAndRestart: PropTypes.func, + } constructor(props) { super() this.state = { diff --git a/components/settings/password/index.js b/components/settings/password/index.js index e637cab..90a081c 100644 --- a/components/settings/password/index.js +++ b/components/settings/password/index.js @@ -1,5 +1,6 @@ import React, { Component } from 'react' import { connect } from 'react-redux' +import PropTypes from 'prop-types' import { navigate } from '../../../slices/navigation' @@ -17,6 +18,10 @@ import { hasEncryptionObservable } from '../../../local-storage' import labels from '../../../i18n/en/settings' class PasswordSetting extends Component { + static propTypes = { + navigate: PropTypes.func, + restartApp: PropTypes.func, + } constructor(props) { super(props) diff --git a/components/settings/password/update.js b/components/settings/password/update.js index 4e0aa15..a83d701 100644 --- a/components/settings/password/update.js +++ b/components/settings/password/update.js @@ -13,6 +13,7 @@ export default class ChangePassword extends Component { static propTypes = { onStartChange: PropTypes.func, onCancelChange: PropTypes.func, + changeEncryptionAndRestart: PropTypes.func, } constructor() { diff --git a/package-lock.json b/package-lock.json index 2523074..c99282e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2485,9 +2485,9 @@ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" }, "caniuse-lite": { - "version": "1.0.30001258", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001258.tgz", - "integrity": "sha512-RBByOG6xWXUp0CR2/WU2amXz3stjKpSl5J1xU49F1n2OxD//uBZO4wCKUiG+QMGf7CHGfDDcqoKriomoGVxTeA==" + "version": "1.0.30001375", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001375.tgz", + "integrity": "sha512-kWIMkNzLYxSvnjy0hL8w1NOaWNr2rn39RTAVyIwcw8juu60bZDWiF1/loOYANzjtJmy6qPgNmn38ro5Pygagdw==" }, "capture-exit": { "version": "2.0.0",