diff --git a/components/dashboard/slider-form.tsx b/components/dashboard/slider-form.tsx index 655259a..e3b9570 100644 --- a/components/dashboard/slider-form.tsx +++ b/components/dashboard/slider-form.tsx @@ -2,7 +2,7 @@ import { useState } from "react" import { useRouter } from "next/navigation" -import { useForm } from "react-hook-form" +import { useForm, type Resolver } from "react-hook-form" import { zodResolver } from "@hookform/resolvers/zod" import * as z from "zod" import { Button } from "@/components/ui/button" @@ -54,7 +54,7 @@ export function SliderForm({ initialData }: SliderFormProps) { const [loading, setLoading] = useState(false) const form = useForm({ - resolver: zodResolver(sliderSchema), + resolver: zodResolver(sliderSchema) as Resolver, defaultValues: initialData ? { title: initialData.title, description: initialData.description || "", @@ -107,7 +107,6 @@ export function SliderForm({ initialData }: SliderFormProps) {
( @@ -127,7 +126,6 @@ export function SliderForm({ initialData }: SliderFormProps) {
( @@ -141,7 +139,6 @@ export function SliderForm({ initialData }: SliderFormProps) { /> ( @@ -157,7 +154,6 @@ export function SliderForm({ initialData }: SliderFormProps) {
( @@ -171,7 +167,6 @@ export function SliderForm({ initialData }: SliderFormProps) { /> ( @@ -185,7 +180,6 @@ export function SliderForm({ initialData }: SliderFormProps) { /> ( diff --git a/lint_errors.txt b/lint_errors.txt new file mode 100644 index 0000000..5edd3ec --- /dev/null +++ b/lint_errors.txt @@ -0,0 +1,4 @@ + +> parakasa@0.1.0 lint +> next lint + diff --git a/lint_report.txt b/lint_report.txt new file mode 100644 index 0000000..4e11a50 Binary files /dev/null and b/lint_report.txt differ diff --git a/lint_results.txt b/lint_results.txt new file mode 100644 index 0000000..89f2ef9 --- /dev/null +++ b/lint_results.txt @@ -0,0 +1,5 @@ + +> parakasa@0.1.0 lint +> next lint + +✔ No ESLint warnings or errors diff --git a/tsc_err.txt b/tsc_err.txt new file mode 100644 index 0000000..2b2d5b0 Binary files /dev/null and b/tsc_err.txt differ diff --git a/tsc_output.txt b/tsc_output.txt new file mode 100644 index 0000000..ab6d174 Binary files /dev/null and b/tsc_output.txt differ