🐛 Fix input element type for create invite
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { Button, Group, Stack, Text } from '@mantine/core';
|
import { Button, Group, Stack, Text } from '@mantine/core';
|
||||||
import { DateInput } from '@mantine/dates';
|
import { DateInput, DateTimePicker } from '@mantine/dates';
|
||||||
import { useForm, zodResolver } from '@mantine/form';
|
import { useForm, zodResolver } from '@mantine/form';
|
||||||
import { ContextModalProps, modals } from '@mantine/modals';
|
import { ContextModalProps, modals } from '@mantine/modals';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
@@ -41,11 +41,12 @@ export const CreateInviteModal = ({ id }: ContextModalProps<{}>) => {
|
|||||||
won't be able to create an account.
|
won't be able to create an account.
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<DateInput
|
<DateTimePicker
|
||||||
popoverProps={{ withinPortal: true }}
|
popoverProps={{ withinPortal: true }}
|
||||||
minDate={minDate}
|
minDate={minDate}
|
||||||
maxDate={maxDate}
|
maxDate={maxDate}
|
||||||
withAsterisk
|
withAsterisk
|
||||||
|
valueFormat="DD MMM YYYY hh:mm A"
|
||||||
label="Expiration date"
|
label="Expiration date"
|
||||||
variant="filled"
|
variant="filled"
|
||||||
{...form.getInputProps('expirationDate')}
|
{...form.getInputProps('expirationDate')}
|
||||||
|
|||||||
Reference in New Issue
Block a user