Skip to content

Commit 6bf1684

Browse files
committed
chore: use mantine date in participant form
1 parent d5b46cb commit 6bf1684

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/little-poets-pull.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@quassel/frontend": patch
3+
---
4+
5+
Use mantine date in create participant form

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createFileRoute, useNavigate } from "@tanstack/react-router";
2-
import { Button, TextInput, useForm } from "@quassel/ui";
2+
import { Button, DateInput, TextInput, useForm } from "@quassel/ui";
33
import { $api } from "../../../../stores/api";
44
import { components } from "../../../../api.gen";
55

@@ -26,7 +26,7 @@ function AdministrationParticipantsNew() {
2626
return (
2727
<form autoComplete="off" onSubmit={f.onSubmit(handleSubmit)}>
2828
<TextInput label="Id" type="number" {...f.getInputProps("id")} defaultValue={undefined} required />
29-
<TextInput label="Birthday" type="date" {...f.getInputProps("birthday")} required />
29+
<DateInput label="Birthday" {...f.getInputProps("birthday")} required />
3030

3131
<Button type="submit" fullWidth mt="xl" loading={createParticipantMutation.isPending}>
3232
Create

0 commit comments

Comments
 (0)