fix: multiple small fixes

This commit is contained in:
Sérgio Salgado 2021-11-24 22:11:25 +00:00
parent 6b44c6aa37
commit d8f163af74
11 changed files with 135 additions and 152 deletions

View file

@ -14,7 +14,6 @@ import { Checkbox, SecretInput, TextInput } from 'src/components/inputs/formik'
import { Label3, P } from 'src/components/typography'
import styles from './shared.styles'
import { STATES } from './states'
const useStyles = makeStyles(styles)
@ -92,10 +91,8 @@ const LoginState = ({ state, dispatch, strategy }) => {
if (!loginResponse.login) return
const stateVar = STATES[loginResponse.login]
return dispatch({
type: stateVar,
type: loginResponse.login,
payload: {
clientField: username,
passwordField: password,
@ -222,7 +219,7 @@ const LoginState = ({ state, dispatch, strategy }) => {
}}
buttonClassName={classes.loginButton}
className={classes.fidoLoginButtonWrapper}>
I have a YubiKey
I have a hardware key
</Button>
)}
<Button