mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 12:43:24 +00:00
Formated Files
This commit is contained in:
parent
d5631b309a
commit
e768d9181f
138 changed files with 1829 additions and 1851 deletions
|
@ -1,12 +1,12 @@
|
|||
"use client";
|
||||
'use client';
|
||||
|
||||
import { forwardRef } from "react";
|
||||
import { useFormStatus } from "react-dom";
|
||||
import { forwardRef } from 'react';
|
||||
import { useFormStatus } from 'react-dom';
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { FormErrors } from "./form-errors";
|
||||
import { cn } from '@/lib/utils';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { FormErrors } from './form-errors';
|
||||
|
||||
interface FormInputProps {
|
||||
id: string;
|
||||
|
@ -32,7 +32,7 @@ export const FormInput = forwardRef<HTMLInputElement, FormInputProps>(
|
|||
disabled,
|
||||
errors,
|
||||
className,
|
||||
defaultValue = "",
|
||||
defaultValue = '',
|
||||
onBlur,
|
||||
},
|
||||
ref
|
||||
|
@ -40,12 +40,12 @@ export const FormInput = forwardRef<HTMLInputElement, FormInputProps>(
|
|||
const { pending } = useFormStatus();
|
||||
|
||||
return (
|
||||
<div className="space-y-2">
|
||||
<div className="space-y-1">
|
||||
<div className='space-y-2'>
|
||||
<div className='space-y-1'>
|
||||
{label ? (
|
||||
<Label
|
||||
htmlFor={id}
|
||||
className="text-xs font-semibold text-neutral-700"
|
||||
className='text-xs font-semibold text-neutral-700'
|
||||
>
|
||||
{label}
|
||||
</Label>
|
||||
|
@ -60,7 +60,7 @@ export const FormInput = forwardRef<HTMLInputElement, FormInputProps>(
|
|||
placeholder={placeholder}
|
||||
type={type}
|
||||
disabled={pending ?? disabled}
|
||||
className={cn("text-sm px-2 py-1 h-7", className)}
|
||||
className={cn('h-7 px-2 py-1 text-sm', className)}
|
||||
aria-describedby={`${id}-error`}
|
||||
/>
|
||||
</div>
|
||||
|
@ -70,4 +70,4 @@ export const FormInput = forwardRef<HTMLInputElement, FormInputProps>(
|
|||
}
|
||||
);
|
||||
|
||||
FormInput.displayName = "FormInput";
|
||||
FormInput.displayName = 'FormInput';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue