import React from 'react'; import { Button, InputGroup, Intent, FormGroup, Checkbox, } from '@blueprintjs/core'; import { Form, ErrorMessage, Field } from 'formik'; import { T } from '@/components'; import { inputIntent } from '@/utils'; import { PasswordRevealer } from './components'; /** * Login form. */ export default function LoginForm({ 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 (
); }