Passing Dialog content

This commit is contained in:
okbel
2018-04-30 16:53:05 -03:00
parent 58108f257f
commit 691bfa4e30
4 changed files with 31 additions and 28 deletions
@@ -8,7 +8,6 @@ import { t } from 'plugin-api/beta/client/services';
class ChangeEmailContentDialog extends React.Component {
state = {
showError: false,
errors: {},
};
showError = () => {
@@ -53,7 +52,9 @@ class ChangeEmailContentDialog extends React.Component {
type="password"
onChange={this.props.onChange}
defaultValue=""
hasError={this.state.errors.password && this.state.showError}
hasError={
!this.props.formData.confirmPassword && this.state.showError
}
errorMsg={t('talk-plugin-auth.change_email.incorrect_password')}
showError={this.state.showError}
columnDisplay