fixed imports from shared libary

This commit is contained in:
PxlLoewe
2025-06-26 21:42:10 -07:00
parent d2ea168312
commit 4068fdb807
9 changed files with 50 additions and 94 deletions

View File

@@ -1,11 +1,6 @@
import React from "react";
import {
FieldValues,
Path,
RegisterOptions,
UseFormReturn,
} from "react-hook-form";
import { cn } from "../../../helper/cn";
import { FieldValues, Path, RegisterOptions, UseFormReturn } from "react-hook-form";
import { cn } from "@repo/shared-components";
interface InputProps<T extends FieldValues>
extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "form"> {
@@ -30,17 +25,12 @@ export const Input = <T extends FieldValues>({
<span className="text-lg flex items-center gap-2">{label}</span>
<input
{...form.register(name, formOptions)}
className={cn(
"input input-bordered w-full placeholder:text-neutral-600",
className,
)}
className={cn("input input-bordered w-full placeholder:text-neutral-600", className)}
placeholder={placeholder}
{...inputProps}
/>
{form.formState.errors[name] && (
<p className="text-error">
{form.formState.errors[name].message as string}
</p>
<p className="text-error">{form.formState.errors[name].message as string}</p>
)}
</label>
);