From 4d656c19160f49c80becf75e82f247fedb713c0e Mon Sep 17 00:00:00 2001
From: Aamir Azad <82281117+aamirazad@users.noreply.github.com>
Date: Mon, 24 Jun 2024 16:17:28 +0530
Subject: [PATCH] refactor: fix eslint issues (#28)
---
src/app/paperless/page.tsx | 5 +--
src/app/settings/page.tsx | 69 +------------------------------------
src/components/ui/form.tsx | 8 ++---
src/components/ui/input.tsx | 3 +-
4 files changed, 9 insertions(+), 76 deletions(-)
diff --git a/src/app/paperless/page.tsx b/src/app/paperless/page.tsx
index 4223dbe..2466303 100644
--- a/src/app/paperless/page.tsx
+++ b/src/app/paperless/page.tsx
@@ -11,6 +11,7 @@ import {
FormField,
FormItem,
FormLabel,
+ FormMessage,
} from "@/components/ui/form";
import { Input } from "@/components/ui/input";
import { zodResolver } from "@hookform/resolvers/zod";
@@ -61,7 +62,7 @@ function DocumentsSearch() {
return (
- );
-}
-
function PaperlessURL({
setActiveTab,
}: {
@@ -152,6 +84,7 @@ function PaperlessURL({
Leave empty to disable
+
)}
/>
diff --git a/src/components/ui/form.tsx b/src/components/ui/form.tsx
index 0481e02..bcc3aed 100644
--- a/src/components/ui/form.tsx
+++ b/src/components/ui/form.tsx
@@ -1,11 +1,11 @@
import * as React from "react"
-import * as LabelPrimitive from "@radix-ui/react-label"
+import type * as LabelPrimitive from "@radix-ui/react-label"
import { Slot } from "@radix-ui/react-slot"
import {
Controller,
- ControllerProps,
- FieldPath,
- FieldValues,
+ type ControllerProps,
+ type FieldPath,
+ type FieldValues,
FormProvider,
useFormContext,
} from "react-hook-form"
diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsx
index 3792d8b..071ee94 100644
--- a/src/components/ui/input.tsx
+++ b/src/components/ui/input.tsx
@@ -2,8 +2,7 @@ import * as React from "react"
import { cn } from "@/lib/utils"
-export interface InputProps
- extends React.InputHTMLAttributes {}
+export type InputProps = React.InputHTMLAttributes
const Input = React.forwardRef(
({ className, type, ...props }, ref) => {