Skip to content

Commit

Permalink
hide spoke heading on facility create page
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacobjeevan committed Oct 4, 2024
1 parent bc4fa2c commit 52fdf18
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Components/Facility/FacilityCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -851,14 +851,14 @@ export const FacilityCreate = (props: FacilityProps) => {
required
types={["mobile", "landline"]}
/>
<div className="py-4 md:col-span-2">
<h4 className="mb-4">{t("spokes")}</h4>
{facilityId && (
{facilityId && (
<div className="py-4 md:col-span-2">
<h4 className="mb-4">{t("spokes")}</h4>
<SpokeFacilityEditor
facility={{ ...facilityQuery.data, id: facilityId }}
/>
)}
</div>
</div>
)}
<div className="grid grid-cols-1 gap-4 py-4 sm:grid-cols-2 md:col-span-2 xl:grid-cols-4">
<TextFormField
{...field("oxygen_capacity")}
Expand Down

0 comments on commit 52fdf18

Please sign in to comment.