Skip to content

Commit 35d9978

Browse files
committed
chore: format forms
1 parent 0cc5d77 commit 35d9978

File tree

8 files changed

+57
-73
lines changed

8 files changed

+57
-73
lines changed

apps/frontend/src/routes/_auth/administration/languages/edit.$id.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,14 @@ function AdministrationLanguagesEdit() {
4444
}, [isSuccess, data]);
4545

4646
return (
47-
<>
48-
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
49-
<TextInput label="Name" type="name" {...f.getInputProps("name")} />
50-
<TextInput label="IETF BCP 47" type="text" {...f.getInputProps("ietfBcp47")} />
47+
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
48+
<TextInput label="Name" type="name" {...f.getInputProps("name")} />
49+
<TextInput label="IETF BCP 47" type="text" {...f.getInputProps("ietfBcp47")} />
5150

52-
<Button type="submit" fullWidth mt="xl" loading={editCarerMutation.isPending}>
53-
Change
54-
</Button>
55-
</form>
56-
</>
51+
<Button type="submit" fullWidth mt="xl" loading={editCarerMutation.isPending}>
52+
Change
53+
</Button>
54+
</form>
5755
);
5856
}
5957

apps/frontend/src/routes/_auth/administration/languages/new.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,14 @@ function AdministrationLanguagesNew() {
2424
};
2525

2626
return (
27-
<>
28-
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
29-
<TextInput label="Name" type="text" {...f.getInputProps("name")} required />
30-
<TextInput label="IETF BCP 47" type="text" {...f.getInputProps("ietfBcp47")} />
27+
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
28+
<TextInput label="Name" type="text" {...f.getInputProps("name")} required />
29+
<TextInput label="IETF BCP 47" type="text" {...f.getInputProps("ietfBcp47")} />
3130

32-
<Button type="submit" fullWidth mt="xl" loading={createLanguageMutation.isPending}>
33-
Create
34-
</Button>
35-
</form>
36-
</>
31+
<Button type="submit" fullWidth mt="xl" loading={createLanguageMutation.isPending}>
32+
Create
33+
</Button>
34+
</form>
3735
);
3836
}
3937

apps/frontend/src/routes/_auth/administration/participants/new.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,14 @@ function AdministrationParticipantsNew() {
2424
};
2525

2626
return (
27-
<>
28-
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
29-
<TextInput label="Id" type="number" {...f.getInputProps("id")} defaultValue={undefined} required />
30-
<TextInput label="Birthday" type="date" {...f.getInputProps("birthday")} required />
27+
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
28+
<TextInput label="Id" type="number" {...f.getInputProps("id")} defaultValue={undefined} required />
29+
<TextInput label="Birthday" type="date" {...f.getInputProps("birthday")} required />
3130

32-
<Button type="submit" fullWidth mt="xl" loading={createParticipantMutation.isPending}>
33-
Create
34-
</Button>
35-
</form>
36-
</>
31+
<Button type="submit" fullWidth mt="xl" loading={createParticipantMutation.isPending}>
32+
Create
33+
</Button>
34+
</form>
3735
);
3836
}
3937

apps/frontend/src/routes/_auth/administration/questionnaires/edit.$id.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,13 @@ function AdministrationQuestionnairesEdit() {
4040
}, [isSuccess, data]);
4141

4242
return (
43-
<>
44-
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
45-
<TextInput label="Name" type="name" {...f.getInputProps("title")} />
43+
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
44+
<TextInput label="Name" type="name" {...f.getInputProps("title")} />
4645

47-
<Button type="submit" fullWidth mt="xl" loading={editQuestionnaireMutation.isPending}>
48-
Change
49-
</Button>
50-
</form>
51-
</>
46+
<Button type="submit" fullWidth mt="xl" loading={editQuestionnaireMutation.isPending}>
47+
Change
48+
</Button>
49+
</form>
5250
);
5351
}
5452

apps/frontend/src/routes/_auth/administration/studies/edit.$id.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,14 @@ function AdministrationStudiesEdit() {
4040
}, [study.isSuccess, study.data]);
4141

4242
return (
43-
<>
44-
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
45-
<TextInput label="Id" type="number" {...f.getInputProps("id")} required />
46-
<TextInput label="Title" type="text" {...f.getInputProps("title")} required />
43+
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
44+
<TextInput label="Id" type="number" {...f.getInputProps("id")} required />
45+
<TextInput label="Title" type="text" {...f.getInputProps("title")} required />
4746

48-
<Button type="submit" fullWidth mt="xl" loading={editStudyMutation.isPending}>
49-
Change
50-
</Button>
51-
</form>
52-
</>
47+
<Button type="submit" fullWidth mt="xl" loading={editStudyMutation.isPending}>
48+
Change
49+
</Button>
50+
</form>
5351
);
5452
}
5553

apps/frontend/src/routes/_auth/administration/studies/new.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,14 @@ function AdministrationStudiesNew() {
2525
};
2626

2727
return (
28-
<>
29-
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
30-
<TextInput label="Id" type="number" {...f.getInputProps("id")} defaultValue={undefined} required />
31-
<TextInput label="Title" type="text" {...f.getInputProps("title")} required />
28+
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
29+
<TextInput label="Id" type="number" {...f.getInputProps("id")} defaultValue={undefined} required />
30+
<TextInput label="Title" type="text" {...f.getInputProps("title")} required />
3231

33-
<Button type="submit" fullWidth mt="xl" loading={createStudyMutation.isPending}>
34-
Create
35-
</Button>
36-
</form>
37-
</>
32+
<Button type="submit" fullWidth mt="xl" loading={createStudyMutation.isPending}>
33+
Create
34+
</Button>
35+
</form>
3836
);
3937
}
4038

apps/frontend/src/routes/_auth/administration/users/edit.$id.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,15 @@ function AdministrationUsersEdit() {
3535
}, [user.isSuccess, user.data]);
3636

3737
return (
38-
<>
39-
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
40-
<TextInput label="Email" type="email" {...f.getInputProps("email")} />
41-
<PasswordInput label="Password" {...f.getInputProps("password")} autoComplete="new-password" />
42-
<Select label="Role" data={userMutationDtoRoleValues} {...f.getInputProps("role")} />
38+
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
39+
<TextInput label="Email" type="email" {...f.getInputProps("email")} />
40+
<PasswordInput label="Password" {...f.getInputProps("password")} autoComplete="new-password" />
41+
<Select label="Role" data={userMutationDtoRoleValues} {...f.getInputProps("role")} />
4342

44-
<Button type="submit" fullWidth mt="xl" loading={editUserMutation.isPending}>
45-
Change
46-
</Button>
47-
</form>
48-
</>
43+
<Button type="submit" fullWidth mt="xl" loading={editUserMutation.isPending}>
44+
Change
45+
</Button>
46+
</form>
4947
);
5048
}
5149

apps/frontend/src/routes/_auth/administration/users/new.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,15 @@ function AdministrationUsersNew() {
2424
};
2525

2626
return (
27-
<>
28-
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
29-
<TextInput label="Email" type="email" {...f.getInputProps("email")} required />
30-
<PasswordInput label="Password" {...f.getInputProps("password")} autoComplete="new-password" required />
31-
<Select label="Role" {...f.getInputProps("role")} data={userCreationDtoRoleValues} />
27+
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
28+
<TextInput label="Email" type="email" {...f.getInputProps("email")} required />
29+
<PasswordInput label="Password" {...f.getInputProps("password")} autoComplete="new-password" required />
30+
<Select label="Role" {...f.getInputProps("role")} data={userCreationDtoRoleValues} />
3231

33-
<Button type="submit" fullWidth mt="xl" loading={createUserMutation.isPending}>
34-
Create
35-
</Button>
36-
</form>
37-
</>
32+
<Button type="submit" fullWidth mt="xl" loading={createUserMutation.isPending}>
33+
Create
34+
</Button>
35+
</form>
3836
);
3937
}
4038

0 commit comments

Comments
 (0)