Skip to content

Commit

Permalink
🌐 formTypes updated 🧹
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanptm committed Sep 27, 2024
1 parent 5f75df2 commit 45f5eac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 10 additions & 2 deletions client/components/forms/patient/OtpForms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,25 @@
import { FormEvent } from "react";
import { InputOTP, InputOTPGroup, InputOTPSlot } from "@/components/ui/input-otp";
import { Otptimer } from "otp-timer-ts";
import { OtpFromProps } from "@/types";
import SubmitButton from "@/components/button/SubmitButton";

export interface Props {
handleVerify: (e: FormEvent) => void;
handleResend: () => void;
timer: number;
isLoading: boolean;
otp: string;
setOtp: (value: string) => void;
}

export default function OtpVerificationSection({
handleVerify,
handleResend,
timer,
isLoading,
otp,
setOtp,
}: OtpFromProps) {
}: Props) {
return (
<form className="space-y-6 flex-1" onSubmit={(e: FormEvent) => handleVerify(e)}>
<section className="mb-12 space-y-4">
Expand Down
8 changes: 0 additions & 8 deletions client/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,4 @@ export interface CustomProps {
showDateText?: string;
}

export interface OtpFromProps {
handleVerify: (e: FormEvent) => void;
handleResend: () => void;
timer: number;
isLoading: boolean;
otp: string;
setOtp: (value: string) => void;
}

1 comment on commit 45f5eac

@vercel
Copy link

@vercel vercel bot commented on 45f5eac Sep 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.