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:
		@@ -1,4 +1,4 @@
 | 
			
		||||
{
 | 
			
		||||
  "enterTotp": "Enter code",
 | 
			
		||||
  "description": "In order to sign in this account, you need to enter a one-time password from mobile application"
 | 
			
		||||
    "enterTotp": "Enter code",
 | 
			
		||||
    "description": "In order to sign in this account, you need to enter a one-time password from mobile application"
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -4,10 +4,10 @@ import messages from './Mfa.intl.json';
 | 
			
		||||
import passwordMessages from '../password/Password.intl.json';
 | 
			
		||||
 | 
			
		||||
export default factory({
 | 
			
		||||
  title: messages.enterTotp,
 | 
			
		||||
  body: Body,
 | 
			
		||||
  footer: {
 | 
			
		||||
    color: 'green',
 | 
			
		||||
    label: passwordMessages.signInButton,
 | 
			
		||||
  },
 | 
			
		||||
    title: messages.enterTotp,
 | 
			
		||||
    body: Body,
 | 
			
		||||
    footer: {
 | 
			
		||||
        color: 'green',
 | 
			
		||||
        label: passwordMessages.signInButton,
 | 
			
		||||
    },
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
@@ -8,30 +8,30 @@ import styles from './mfa.scss';
 | 
			
		||||
import messages from './Mfa.intl.json';
 | 
			
		||||
 | 
			
		||||
export default class MfaBody extends BaseAuthBody {
 | 
			
		||||
  static panelId = 'mfa';
 | 
			
		||||
  static hasGoBack = true;
 | 
			
		||||
    static panelId = 'mfa';
 | 
			
		||||
    static hasGoBack = true;
 | 
			
		||||
 | 
			
		||||
  autoFocusField = 'totp';
 | 
			
		||||
    autoFocusField = 'totp';
 | 
			
		||||
 | 
			
		||||
  render() {
 | 
			
		||||
    return (
 | 
			
		||||
      <div>
 | 
			
		||||
        {this.renderErrors()}
 | 
			
		||||
    render() {
 | 
			
		||||
        return (
 | 
			
		||||
            <div>
 | 
			
		||||
                {this.renderErrors()}
 | 
			
		||||
 | 
			
		||||
        <PanelIcon icon="lock" />
 | 
			
		||||
                <PanelIcon icon="lock" />
 | 
			
		||||
 | 
			
		||||
        <p className={styles.descriptionText}>
 | 
			
		||||
          <Message {...messages.description} />
 | 
			
		||||
        </p>
 | 
			
		||||
                <p className={styles.descriptionText}>
 | 
			
		||||
                    <Message {...messages.description} />
 | 
			
		||||
                </p>
 | 
			
		||||
 | 
			
		||||
        <Input
 | 
			
		||||
          {...this.bindField('totp')}
 | 
			
		||||
          icon="key"
 | 
			
		||||
          required
 | 
			
		||||
          placeholder={messages.enterTotp}
 | 
			
		||||
          autoComplete="off"
 | 
			
		||||
        />
 | 
			
		||||
      </div>
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
                <Input
 | 
			
		||||
                    {...this.bindField('totp')}
 | 
			
		||||
                    icon="key"
 | 
			
		||||
                    required
 | 
			
		||||
                    placeholder={messages.enterTotp}
 | 
			
		||||
                    autoComplete="off"
 | 
			
		||||
                />
 | 
			
		||||
            </div>
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
.descriptionText {
 | 
			
		||||
  font-size: 15px;
 | 
			
		||||
  line-height: 1.4;
 | 
			
		||||
  padding-bottom: 8px;
 | 
			
		||||
  color: #aaa;
 | 
			
		||||
    font-size: 15px;
 | 
			
		||||
    line-height: 1.4;
 | 
			
		||||
    padding-bottom: 8px;
 | 
			
		||||
    color: #aaa;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user