@@ -11,6 +11,7 @@ import {
|
||||
RhfTextareaField,
|
||||
RhfSelectField,
|
||||
RhfAsyncSelectField,
|
||||
RhfTimeField,
|
||||
} from "@/shared/components/form"
|
||||
import { toast } from "sonner"
|
||||
import { useAuthApi } from "@/shared/useApi"
|
||||
@@ -40,8 +41,8 @@ export type AppointmentFormProps = {
|
||||
const DEFAULT_VALUES: AppointmentFormValues = {
|
||||
title: "",
|
||||
date: "",
|
||||
from_time: "",
|
||||
to_time: "",
|
||||
from_time: "00:00:00",
|
||||
to_time: "00:00:00",
|
||||
customer: null,
|
||||
vehicle: null,
|
||||
service_writer: null,
|
||||
@@ -157,8 +158,8 @@ export function AppointmentForm({ resourceId, initialData, onSuccess }: Appointm
|
||||
/>
|
||||
</div>
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
<RhfTextField name="from_time" label="From Time" placeholder="HH:MM" type="time" />
|
||||
<RhfTextField name="to_time" label="To Time" placeholder="HH:MM" type="time" />
|
||||
<RhfTimeField name="from_time" label="From Time" placeholder="HH:MM" />
|
||||
<RhfTimeField name="to_time" label="To Time" placeholder="HH:MM" />
|
||||
</div>
|
||||
</FieldGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user