Fixes linter failing
This commit is contained in:
@@ -22,6 +22,7 @@ class App extends Component {
|
|||||||
navigation: PropTypes.object.isRequired,
|
navigation: PropTypes.object.isRequired,
|
||||||
navigate: PropTypes.func,
|
navigate: PropTypes.func,
|
||||||
goBack: PropTypes.func,
|
goBack: PropTypes.func,
|
||||||
|
restartApp: PropTypes.func,
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
import Button from '../../common/button'
|
import Button from '../../common/button'
|
||||||
|
|
||||||
@@ -8,6 +9,10 @@ import showBackUpReminder from './show-backup-reminder'
|
|||||||
import settings from '../../../i18n/en/settings'
|
import settings from '../../../i18n/en/settings'
|
||||||
|
|
||||||
export default class CreatePassword extends Component {
|
export default class CreatePassword extends Component {
|
||||||
|
static propTypes = {
|
||||||
|
changeEncryptionAndRestart: PropTypes.func,
|
||||||
|
}
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super()
|
super()
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ export default class DeletePassword extends Component {
|
|||||||
static propTypes = {
|
static propTypes = {
|
||||||
onStartDelete: PropTypes.func,
|
onStartDelete: PropTypes.func,
|
||||||
onCancelDelete: PropTypes.func,
|
onCancelDelete: PropTypes.func,
|
||||||
|
changeEncryptionAndRestart: PropTypes.func,
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import { StyleSheet } from 'react-native'
|
import { StyleSheet } from 'react-native'
|
||||||
import nodejs from 'nodejs-mobile-react-native'
|
import nodejs from 'nodejs-mobile-react-native'
|
||||||
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
import AppText from '../../common/app-text'
|
import AppText from '../../common/app-text'
|
||||||
import AppTextInput from '../../common/app-text-input'
|
import AppTextInput from '../../common/app-text-input'
|
||||||
@@ -13,6 +14,9 @@ import settings from '../../../i18n/en/settings'
|
|||||||
const LISTENER_TYPE = 'create-or-change-pw'
|
const LISTENER_TYPE = 'create-or-change-pw'
|
||||||
|
|
||||||
export default class EnterNewPassword extends Component {
|
export default class EnterNewPassword extends Component {
|
||||||
|
static propTypes = {
|
||||||
|
changeEncryptionAndRestart: PropTypes.func,
|
||||||
|
}
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super()
|
super()
|
||||||
this.state = {
|
this.state = {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import { connect } from 'react-redux'
|
import { connect } from 'react-redux'
|
||||||
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
import { navigate } from '../../../slices/navigation'
|
import { navigate } from '../../../slices/navigation'
|
||||||
|
|
||||||
@@ -17,6 +18,10 @@ import { hasEncryptionObservable } from '../../../local-storage'
|
|||||||
import labels from '../../../i18n/en/settings'
|
import labels from '../../../i18n/en/settings'
|
||||||
|
|
||||||
class PasswordSetting extends Component {
|
class PasswordSetting extends Component {
|
||||||
|
static propTypes = {
|
||||||
|
navigate: PropTypes.func,
|
||||||
|
restartApp: PropTypes.func,
|
||||||
|
}
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props)
|
super(props)
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export default class ChangePassword extends Component {
|
|||||||
static propTypes = {
|
static propTypes = {
|
||||||
onStartChange: PropTypes.func,
|
onStartChange: PropTypes.func,
|
||||||
onCancelChange: PropTypes.func,
|
onCancelChange: PropTypes.func,
|
||||||
|
changeEncryptionAndRestart: PropTypes.func,
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
Reference in New Issue
Block a user