mirror of
https://github.com/wassname/talk.git
synced 2026-08-18 12:30:39 +08:00
Resolve linter issues
This commit is contained in:
@@ -142,7 +142,9 @@ class AddEmailAddressDialog extends React.Component {
|
||||
|
||||
render() {
|
||||
const { errors, formData, showErrors, step } = this.state;
|
||||
const { root: { settings } } = this.props;
|
||||
const {
|
||||
root: { settings },
|
||||
} = this.props;
|
||||
|
||||
return (
|
||||
<Dialog className={styles.dialog} open={true}>
|
||||
|
||||
@@ -135,7 +135,11 @@ class ChangePassword extends React.Component {
|
||||
};
|
||||
|
||||
onForgotPassword = async () => {
|
||||
const { root: { me: { email } } } = this.props;
|
||||
const {
|
||||
root: {
|
||||
me: { email },
|
||||
},
|
||||
} = this.props;
|
||||
|
||||
try {
|
||||
await this.props.forgotPassword(email);
|
||||
|
||||
@@ -114,7 +114,11 @@ class Profile extends React.Component {
|
||||
|
||||
isSaveEnabled = () => {
|
||||
const { formData } = this.state;
|
||||
const { root: { me: { username, email } } } = this.props;
|
||||
const {
|
||||
root: {
|
||||
me: { username, email },
|
||||
},
|
||||
} = this.props;
|
||||
const formHasErrors = !!Object.keys(this.state.errors).length;
|
||||
const validUsername =
|
||||
formData.newUsername && formData.newUsername !== username;
|
||||
@@ -166,7 +170,13 @@ class Profile extends React.Component {
|
||||
|
||||
render() {
|
||||
const {
|
||||
root: { me: { username, email, state: { status } } },
|
||||
root: {
|
||||
me: {
|
||||
username,
|
||||
email,
|
||||
state: { status },
|
||||
},
|
||||
},
|
||||
notify,
|
||||
} = this.props;
|
||||
const { editing, formData, showDialog } = this.state;
|
||||
|
||||
Reference in New Issue
Block a user