Skip to content

Commit

Permalink
otp page error solved
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanptm committed Aug 17, 2024
1 parent bdde059 commit 8a323e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions client/components/CustomFormField.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use client";
import React from "react";
import {
FormControl,
FormField,
Expand All @@ -17,7 +18,7 @@ import { Select } from "@radix-ui/react-select";
import { SelectContent, SelectTrigger, SelectValue } from "./ui/select";
import { Checkbox } from "./ui/checkbox";
import { Textarea } from "./ui/textarea";
import { IconCalendar } from '@tabler/icons-react';
import { IconCalendar } from "@tabler/icons-react";

const RenderField = ({ field, props }: { field: any; props: CustomProps }) => {
const {
Expand Down Expand Up @@ -67,7 +68,7 @@ const RenderField = ({ field, props }: { field: any; props: CustomProps }) => {
</div>
);

case FormFieldType.DATE_PICKER:
case FormFieldType.DATE_PICKER:
return (
<div className="flex rounded-md border border-dark-500 bg-dark-400">
<IconCalendar className="ml-2 mt-1" />
Expand All @@ -89,11 +90,9 @@ const RenderField = ({ field, props }: { field: any; props: CustomProps }) => {
return (
<FormControl>
<Select onValueChange={field.onChange} defaultValue={field.value}>
<FormControl>
<SelectTrigger className="shad-select-trigger">
<SelectValue placeholder={placeholder} />
</SelectTrigger>
</FormControl>
<SelectTrigger className="shad-select-trigger">
<SelectValue placeholder={placeholder} />
</SelectTrigger>
<SelectContent className="shad-select-content">
{children}
</SelectContent>
Expand Down Expand Up @@ -164,7 +163,7 @@ const RenderField = ({ field, props }: { field: any; props: CustomProps }) => {
}
};

const CustomFormField = (props: CustomProps) => {
const CustomFormField: React.FC<CustomProps> = (props) => {
const { control, fieldType, name, label } = props;
return (
<FormField
Expand Down
2 changes: 1 addition & 1 deletion client/components/modles/OtpVerificationModel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const OtpVerificationModel = () => {
<AlertDialogContent className="shad-alert-dialog">
<AlertDialogHeader>
<AlertDialogTitle className="flex items-start justify-between">
<h2 className="sub-header">OTP Verification</h2>
<p className="sub-header">OTP Verification</p>
<Image
src={`/assets/icons/close.svg`}
width={20}
Expand Down

0 comments on commit 8a323e2

Please sign in to comment.