// @ts-nocheck import React from 'react'; import { Form } from 'formik'; import intl from 'react-intl-universal'; import { Intent, Button } from '@blueprintjs/core'; import { Link } from 'react-router-dom'; import { Tooltip2 } from '@blueprintjs/popover2'; import styled from 'styled-components'; import { FFormGroup, FInputGroup, Row, Col, FormattedMessage as T, } from '@/components'; import { AuthSubmitButton, AuthenticationLoadingOverlay } from './_components'; /** * Register form. */ export default function RegisterForm({ isSubmitting }) { const [showPassword, setShowPassword] = React.useState(false); // Handle password revealer changing. const handleLockClick = () => { setShowPassword(!showPassword); }; const lockButton = (