fix: use generic Select component in Date

This commit is contained in:
Arvid Norlin
2024-05-31 13:44:48 +02:00
parent e649a842c6
commit ba644a2c89
6 changed files with 29 additions and 163 deletions
@@ -2,6 +2,11 @@ import type { Control, RegisterOptions } from "react-hook-form"
import type { EditProfileSchema } from "@/components/MyProfile/Profile/Edit/Form/schema"
export const enum DateName {
date = "date",
month = "month",
year = "year",
}
export interface DateProps
extends React.SelectHTMLAttributes<HTMLSelectElement> {
control: Control<EditProfileSchema>