Location Edit / Add / Delete migrated to client-side rendering
This commit is contained in:
@@ -47,7 +47,7 @@ export const LocationEditForm:FC<LocationEditFormProps> = ({ location, yearMonth
|
||||
))}
|
||||
</div>
|
||||
|
||||
<textarea id="locationNotes" name="locationNotes" className="textarea textarea-bordered my-1 w-full block" placeholder="Opis" defaultValue={location?.notes ?? ""}></textarea>
|
||||
<textarea id="locationNotes" name="locationNotes" className="textarea textarea-bordered my-1 w-full block h-[8em]" placeholder="Opis" defaultValue={location?.notes ?? ""}></textarea>
|
||||
<div id="status-error" aria-live="polite" aria-atomic="true">
|
||||
{state.errors?.locationNotes &&
|
||||
state.errors.locationNotes.map((error: string) => (
|
||||
@@ -79,12 +79,12 @@ export const LocationEditFormSkeleton:FC = () =>
|
||||
{
|
||||
return(
|
||||
<div className="card card-compact card-bordered min-w-[20em] max-w-[90em] bg-base-100 shadow-s my-1">
|
||||
<div className="card-body skeleton">
|
||||
<div id="locationName" className="input input-bordered w-full"></div>
|
||||
<div id="locationNotes" className="textarea textarea-bordered my-1 w-full block"></div>
|
||||
<div className="card-body">
|
||||
<div id="locationName" className="input w-full skeleton"></div>
|
||||
<div id="locationNotes" className="textarea my-1 w-full block h-[8em] skeleton"></div>
|
||||
<div className="pt-4">
|
||||
<div className="btn btn-neutral w-[5.5em]"></div>
|
||||
<div className="btn btn-neutral w-[5.5em] ml-3"></div>
|
||||
<div className="btn w-[5.5em] skeleton"></div>
|
||||
<div className="btn w-[5.5em] ml-3 skeleton"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user