Removed redundant css and disabled buttons on error

This commit is contained in:
Daniel Cojocea committed 2024-07-16 11:32:33 -04:00
1 parent d39a716ab6
commit 1f21212072
7 files changed
+13 -17

No files matched your search

+6 -1
View File
@@ -177,7 +177,12 @@ const Login = () => {
</Stack>
</Stack>
<Stack gap={theme.gap.ml} mt={theme.gap.large}>
<Button type="submit" level="primary" label="Sign in" />
<Button
type="submit"
level="primary"
label="Sign in"
disabled={Object.keys(errors).length !== 0 && true}
/>
<Stack
direction="row"
justifyContent="center"