add server error message

This commit is contained in:
Brandon Egger
2023-06-06 22:00:30 -05:00
parent 3cfa29b5b5
commit a05f541713
2 changed files with 8 additions and 2 deletions

View File

@ -252,6 +252,12 @@ const ResourceForm = ({
}) => {
return (
<FormProvider {...methods}>
{error ? (
<h1 className="text-center font-semibold text-red-600">
Error Updating Resource:{" "}
<span className="font-normal text-red-400">{error}</span>
</h1>
) : undefined}
<form className="mx-auto flex max-w-2xl flex-col flex-col-reverse py-1 sm:flex-row sm:divide-x sm:py-4">
<div className="my-5 mr-4 flex flex-col text-lg font-bold">
<ResourceLinkSubForm /> {/** //resource={resource} /> */}