Skip to content

Commit

Permalink
fix(passport): disable send code button when code sent (#2471)
Browse files Browse the repository at this point in the history
  • Loading branch information
poolsar42 committed Jul 11, 2023
1 parent d2c97bb commit b3eb5fc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Text } from '@proofzero/design-system/src/atoms/text/Text'
import { Input } from '@proofzero/design-system/src/atoms/form/Input'
import { Button } from '@proofzero/design-system/src/atoms/buttons/Button'
import { redirect } from '@remix-run/cloudflare'
import { useTransition } from '@remix-run/react'
import {
Form,
useNavigate,
Expand Down Expand Up @@ -48,6 +49,7 @@ export default () => {

const navigate = useNavigate()
const submit = useSubmit()
const transition = useTransition()

return (
<div
Expand Down Expand Up @@ -124,6 +126,7 @@ export default () => {
setErrorMessage(e.message ? e.message : e.toString())
}
}}
disabled={transition.state !== 'idle'}
btnType="primary-alt-skin"
className="w-full"
>
Expand Down

0 comments on commit b3eb5fc

Please sign in to comment.