Skip to content

Commit

Permalink
🔧 forms update
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanptm committed Oct 3, 2024
1 parent 6c541ab commit 1e7a344
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion client/components/forms/admin/SigninForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { z } from "zod";
import { Form } from "@/components/ui/form";
import CustomFormField from "@/components/common/CustomFormField";
import SubmitButton from "@/components/button/SubmitButton";
import { signinFormSchema } from "@/components/forms/schema/adminSchema";
import { signinFormSchema } from "@/lib/form-schema/adminSchema";
import { FormFieldType } from "@/types/enum";
import { useSigninAdmin } from "@/lib/hooks/admin/useAdminAuth";
import { toast } from "@/components/ui/use-toast";
Expand Down
2 changes: 1 addition & 1 deletion client/components/forms/doctor/SigninForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { z } from "zod";
import { Form, FormMessage } from "@/components/ui/form";
import CustomFormField from "@/components/common/CustomFormField";
import SubmitButton from "@/components/button/SubmitButton";
import { signinFormSchema } from "@/components/forms/schema/adminSchema";
import { signinFormSchema } from "@/lib/form-schema/adminSchema";
import { FormFieldType } from "@/types/enum";
import Link from "next/link";
import { useSignInDoctor } from "@/lib/hooks/doctor/useDoctorAuth";
Expand Down
2 changes: 1 addition & 1 deletion client/components/forms/patient/AppointmentForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { z } from "zod";
import { Form } from "@/components/ui/form";
import CustomFormField from "@/components/common/CustomFormField";
import SubmitButton from "@/components/button/SubmitButton";
import { appointFormSchema } from "@/components/forms/schema/patientSchema";
import { appointFormSchema } from "@/lib/form-schema/patientSchema";
import { SelectItem } from "@/components/ui/select";
import Image from "next/image";
import { AppointmentTypes } from "@/constants";
Expand Down
2 changes: 1 addition & 1 deletion client/components/forms/patient/RegistrationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { z } from "zod";
import { Form, FormControl } from "@/components/ui/form";
import CustomFormField from "@/components/common/CustomFormField";
import SubmitButton from "@/components/button/SubmitButton";
import { registerFormSchema } from "@/components/forms/schema/patientSchema";
import { registerFormSchema } from "@/lib/form-schema/patientSchema";
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
import { Label } from "@radix-ui/react-label";
import { BloodGroups, GenderOptions } from "@/constants";
Expand Down
2 changes: 1 addition & 1 deletion client/components/forms/patient/SigninForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { z } from "zod";
import { Form } from "@/components/ui/form";
import CustomFormField from "@/components/common/CustomFormField";
import SubmitButton from "@/components/button/SubmitButton";
import { signinFormSchema } from "@/components/forms/schema/patientSchema";
import { signinFormSchema } from "@/lib/form-schema/patientSchema";
import Link from "next/link";
import { FormFieldType } from "@/types/enum";
import { useToast } from "@/components/ui/use-toast";
Expand Down
2 changes: 1 addition & 1 deletion client/components/forms/patient/SignupForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { z } from "zod";
import { Form } from "@/components/ui/form";
import CustomFormField from "@/components/common/CustomFormField";
import SubmitButton from "@/components/button/SubmitButton";
import { signupFormSchema } from "@/components/forms/schema/patientSchema";
import { signupFormSchema } from "@/lib/form-schema/patientSchema";
import { FormFieldType } from "@/types/enum";
import Link from "next/link";
import { useRouter } from "next/navigation";
Expand Down
2 changes: 1 addition & 1 deletion client/components/models/doctor/PrescriptionModel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { FormFieldType } from "@/types/enum"
import { PlusIcon } from "lucide-react"
import CustomFormField from "@/components/common/CustomFormField"
import { ScrollArea } from "@/components/ui/scroll-area"
import { prescriptionSchema } from "@/components/forms/schema/doctorSchema"
import { prescriptionSchema } from "@/lib/form-schema/doctorSchema"
import SubmitButton from "@/components/button/SubmitButton"
import { useCreatePrescription } from "@/lib/hooks/prescription/usePrescription"
import { toast } from "@/components/ui/use-toast"
Expand Down
2 changes: 1 addition & 1 deletion client/components/models/patient/UpdateProfilePatient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AlertDialog, AlertDialogContent, AlertDialogHeader, AlertDialogTitle }
import { Form, FormControl } from "../../ui/form";
import { useForm } from "react-hook-form";
import { z } from "zod";
import { updateProfileFormSchema } from "@/components/forms/schema/patientSchema";
import { updateProfileFormSchema } from "@/lib/form-schema/patientSchema";
import { zodResolver } from "@hookform/resolvers/zod";
import SubmitButton from "../../button/SubmitButton";
import { IPatient } from "@/types/entities";
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1e7a344

Please sign in to comment.