refactor: centralize route configuration

This commit is contained in:
Your Name
2026-04-11 13:45:49 +05:30
parent a3d727d0c9
commit ddbf2bc4d1
9 changed files with 119 additions and 86 deletions
+3 -2
View File
@@ -19,19 +19,20 @@ export default function FormField({
<div className="form-control">
<label
htmlFor={registration.name}
className="field-label font-display text-primary-content"
className="field-label font-display text-base-content/90 font-medium"
>
{label}
</label>
<input
{...registration}
id={registration.name}
type={type}
placeholder={placeholder}
className={`input input-bordered focus:input-primary ${
error ? "input-error" : ""
}`}
/>
{error && <p className="text-error-content">{error}</p>}
{error && <p className="text-error">{error}</p>}
</div>
);
}