Add proptypes to DeletePassword, ChangePassword and ConfirmWithPassword components

This commit is contained in:
mashazyu
2019-04-15 14:15:26 +02:00
parent a291c78379
commit 31b428fa53
3 changed files with 20 additions and 0 deletions
+7
View File
@@ -1,4 +1,6 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import settings from '../../../i18n/en/settings'
import EnterNewPassword from './enter-new-password'
import SettingsButton from '../shared/settings-button'
@@ -77,4 +79,9 @@ export default class ChangePassword extends Component {
</SettingsButton>
)
}
}
ChangePassword.propTypes = {
onStartChange: PropTypes.func,
onCancelChange: PropTypes.func
}