improve styling

pull/134/head
Alex Kern 1 year ago
parent 36a70f1d29
commit f8d35c8e6d
No known key found for this signature in database
GPG Key ID: EF051FACCACBEE25

@ -362,26 +362,30 @@ export default function Downloader({
} }
return ( return (
<form <>
action="#" {errorMessage ? (
method="post" <TitleText>{errorMessage}</TitleText>
onSubmit={handleSubmitPassword} ) : (
className="w-full" <TitleText>This download requires a password.</TitleText>
> )}
<div className="flex flex-col space-y-5 w-full"> <div className="flex flex-col space-y-5 w-full">
{errorMessage ? ( <form
<TitleText>{errorMessage}</TitleText> action="#"
) : ( method="post"
<TitleText>This download requires a password.</TitleText> onSubmit={handleSubmitPassword}
)} className="w-full"
<PasswordField >
value={password} <div className="flex flex-col space-y-5 w-full">
onChange={setPassword} <PasswordField
isRequired value={password}
isInvalid={Boolean(errorMessage)} onChange={setPassword}
/> isRequired
<UnlockButton onClick={handleSubmitPassword} /> isInvalid={Boolean(errorMessage)}
/>
<UnlockButton onClick={handleSubmitPassword} />
</div>
</form>
</div> </div>
</form> </>
) )
} }

Loading…
Cancel
Save