// @ts-nocheck import React from 'react'; import intl from 'react-intl-universal'; import { Button, InputGroup, Intent, FormGroup, Spinner, } from '@blueprintjs/core'; import { ErrorMessage, Field, Form } from 'formik'; import { FormattedMessage as T } from '@/components'; import { Link } from 'react-router-dom'; import { Row, Col, If } from '@/components'; import { PasswordRevealer } from './components'; import { inputIntent } from '@/utils'; /** * Register form. */ export default function RegisterForm({ isSubmitting }) { const [passwordType, setPasswordType] = React.useState('password'); // Handle password revealer changing. const handlePasswordRevealerChange = React.useCallback( (shown) => { const type = shown ? 'text' : 'password'; setPasswordType(type); }, [setPasswordType], ); return (
); }