mirror of
				https://github.com/elyby/accounts-frontend.git
				synced 2025-05-31 14:11:58 +05:30 
			
		
		
		
	Change prettier rules
This commit is contained in:
		@@ -9,49 +9,48 @@ import styles from './activation.scss';
 | 
			
		||||
import messages from './Activation.intl.json';
 | 
			
		||||
 | 
			
		||||
export default class ActivationBody extends BaseAuthBody {
 | 
			
		||||
  static displayName = 'ActivationBody';
 | 
			
		||||
  static panelId = 'activation';
 | 
			
		||||
    static displayName = 'ActivationBody';
 | 
			
		||||
    static panelId = 'activation';
 | 
			
		||||
 | 
			
		||||
  autoFocusField =
 | 
			
		||||
    this.props.match.params && this.props.match.params.key ? null : 'key';
 | 
			
		||||
    autoFocusField = this.props.match.params && this.props.match.params.key ? null : 'key';
 | 
			
		||||
 | 
			
		||||
  render() {
 | 
			
		||||
    const { key } = this.props.match.params;
 | 
			
		||||
    const { email } = this.context.user;
 | 
			
		||||
    render() {
 | 
			
		||||
        const { key } = this.props.match.params;
 | 
			
		||||
        const { email } = this.context.user;
 | 
			
		||||
 | 
			
		||||
    return (
 | 
			
		||||
      <div>
 | 
			
		||||
        {this.renderErrors()}
 | 
			
		||||
        return (
 | 
			
		||||
            <div>
 | 
			
		||||
                {this.renderErrors()}
 | 
			
		||||
 | 
			
		||||
        <div className={styles.description}>
 | 
			
		||||
          <div className={styles.descriptionImage} />
 | 
			
		||||
                <div className={styles.description}>
 | 
			
		||||
                    <div className={styles.descriptionImage} />
 | 
			
		||||
 | 
			
		||||
          <div className={styles.descriptionText}>
 | 
			
		||||
            {email ? (
 | 
			
		||||
              <Message
 | 
			
		||||
                {...messages.activationMailWasSent}
 | 
			
		||||
                values={{
 | 
			
		||||
                  email: <b>{email}</b>,
 | 
			
		||||
                }}
 | 
			
		||||
              />
 | 
			
		||||
            ) : (
 | 
			
		||||
              <Message {...messages.activationMailWasSentNoEmail} />
 | 
			
		||||
            )}
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div className={styles.formRow}>
 | 
			
		||||
          <Input
 | 
			
		||||
            {...this.bindField('key')}
 | 
			
		||||
            color="blue"
 | 
			
		||||
            center
 | 
			
		||||
            required
 | 
			
		||||
            value={key}
 | 
			
		||||
            readOnly={!!key}
 | 
			
		||||
            autoComplete="off"
 | 
			
		||||
            placeholder={messages.enterTheCode}
 | 
			
		||||
          />
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
                    <div className={styles.descriptionText}>
 | 
			
		||||
                        {email ? (
 | 
			
		||||
                            <Message
 | 
			
		||||
                                {...messages.activationMailWasSent}
 | 
			
		||||
                                values={{
 | 
			
		||||
                                    email: <b>{email}</b>,
 | 
			
		||||
                                }}
 | 
			
		||||
                            />
 | 
			
		||||
                        ) : (
 | 
			
		||||
                            <Message {...messages.activationMailWasSentNoEmail} />
 | 
			
		||||
                        )}
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div className={styles.formRow}>
 | 
			
		||||
                    <Input
 | 
			
		||||
                        {...this.bindField('key')}
 | 
			
		||||
                        color="blue"
 | 
			
		||||
                        center
 | 
			
		||||
                        required
 | 
			
		||||
                        value={key}
 | 
			
		||||
                        readOnly={!!key}
 | 
			
		||||
                        autoComplete="off"
 | 
			
		||||
                        placeholder={messages.enterTheCode}
 | 
			
		||||
                    />
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user