implemented initial eslintFixes
This commit is contained in:
@@ -1,24 +1,18 @@
|
||||
import { DetailedHTMLProps, InputHTMLAttributes, ReactNode } from 'react';
|
||||
import { InputHTMLAttributes, ReactNode } from "react";
|
||||
|
||||
interface FormTextInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
||||
error: any;
|
||||
Svg: ReactNode;
|
||||
children?: ReactNode;
|
||||
error: ReactNode;
|
||||
children?: ReactNode;
|
||||
}
|
||||
|
||||
export const FormTextInput = ({
|
||||
error,
|
||||
Svg,
|
||||
children,
|
||||
...props
|
||||
}: FormTextInputProps) => {
|
||||
return (
|
||||
<>
|
||||
<label className="input input-bordered flex items-center gap-2">
|
||||
{children}
|
||||
<input {...props} />
|
||||
</label>
|
||||
<p className="text-error">{error}</p>
|
||||
</>
|
||||
);
|
||||
export const FormTextInput = ({ error, children, ...props }: FormTextInputProps) => {
|
||||
return (
|
||||
<>
|
||||
<label className="input input-bordered flex items-center gap-2">
|
||||
{children}
|
||||
<input {...props} />
|
||||
</label>
|
||||
<p className="text-error">{error}</p>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user