update InfoInputLine to work with use-react-form

This commit is contained in:
Brandon Egger
2023-06-06 00:40:50 -05:00
parent cabddd777e
commit 0a42d34bb4
2 changed files with 20 additions and 7 deletions

View File

@ -127,12 +127,14 @@ function ResourceSummarySubForm({
</h2>
<span className="text-md">
<InfoInputLine
details={register("manufacturer.name", { required: true })}
placeholder="manufacturer"
value={resource?.manufacturer?.name ?? ""}
hint="manufacturer"
/>
</span>
<InfoInputLine
details={register("name", { required: true })}
placeholder="name"
value={resource?.name ?? ""}
hint="name"