Selaa lähdekoodia

修复ESLint 错误

537yaha 8 kuukautta sitten
vanhempi
sitoutus
48f9c5f71b
2 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
  1. 1 2
      frontend/components/ui/input.tsx
  2. 1 2
      frontend/components/ui/textarea.tsx

+ 1 - 2
frontend/components/ui/input.tsx

@@ -2,8 +2,7 @@ import * as React from "react";
 
 import { cn } from "@/lib/utils";
 
-export interface InputProps
-  extends React.InputHTMLAttributes<HTMLInputElement> {}
+export type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
 
 const Input = React.forwardRef<HTMLInputElement, InputProps>(
   ({ className, type, ...props }, ref) => {

+ 1 - 2
frontend/components/ui/textarea.tsx

@@ -2,8 +2,7 @@ import * as React from "react";
 
 import { cn } from "@/lib/utils";
 
-export interface TextareaProps
-  extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
+export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
 
 const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
   ({ className, ...props }, ref) => {