Add proptypes to DeletePassword, ChangePassword and ConfirmWithPassword components
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
import labels from '../../../i18n/en/settings'
|
import labels from '../../../i18n/en/settings'
|
||||||
import { changeEncryptionAndRestartApp } from '../../../db'
|
import { changeEncryptionAndRestartApp } from '../../../db'
|
||||||
import ConfirmWithPassword from '../shared/confirm-with-password'
|
import ConfirmWithPassword from '../shared/confirm-with-password'
|
||||||
@@ -45,4 +47,9 @@ export default class DeletePassword extends Component {
|
|||||||
</SettingsButton>
|
</SettingsButton>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
DeletePassword.propTypes = {
|
||||||
|
onStartDelete: PropTypes.func,
|
||||||
|
onCancelDelete: PropTypes.func
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
import settings from '../../../i18n/en/settings'
|
import settings from '../../../i18n/en/settings'
|
||||||
import EnterNewPassword from './enter-new-password'
|
import EnterNewPassword from './enter-new-password'
|
||||||
import SettingsButton from '../shared/settings-button'
|
import SettingsButton from '../shared/settings-button'
|
||||||
@@ -77,4 +79,9 @@ export default class ChangePassword extends Component {
|
|||||||
</SettingsButton>
|
</SettingsButton>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ChangePassword.propTypes = {
|
||||||
|
onStartChange: PropTypes.func,
|
||||||
|
onCancelChange: PropTypes.func
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
|
import PropTypes from 'prop-types'
|
||||||
import { View, Alert } from 'react-native'
|
import { View, Alert } from 'react-native'
|
||||||
|
|
||||||
import nodejs from 'nodejs-mobile-react-native'
|
import nodejs from 'nodejs-mobile-react-native'
|
||||||
@@ -99,4 +100,9 @@ export default class ConfirmWithPassword extends Component {
|
|||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ConfirmWithPassword.propTypes = {
|
||||||
|
onSuccess: PropTypes.func,
|
||||||
|
onCancel: PropTypes.func
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user