Skip to content

Commit

Permalink
chore: Fix spacing of submit button
Browse files Browse the repository at this point in the history
Add some spacing between form and submit button in child update form.
  • Loading branch information
LuukvH committed Jun 27, 2024
1 parent 8da8ba6 commit 662d1a4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/web/src/pages/children/UpdateChildPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,17 @@ const UpdateChildPage = () => {
}}
></Controller>
</Grid>
<Grid item xs={12}>
<LoadingButton
variant="contained"
disabled={!isDirty || !isValid}
loading={isSubmitting}
onClick={handleSubmit(onSubmit)}
>
<span>{t("Save")}</span>
</LoadingButton>
</Grid>
</Grid>
<LoadingButton
variant="contained"
disabled={!isDirty || !isValid}
loading={isSubmitting}
onClick={handleSubmit(onSubmit)}
>
<span>{t("Save")}</span>
</LoadingButton>
</FormContainer>
</Paper>
</>
Expand Down
3 changes: 3 additions & 0 deletions src/web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"noFallthroughCasesInSwitch": true,
/* Path mapping */
"paths": {
Expand Down

0 comments on commit 662d1a4

Please sign in to comment.