diff --git a/src/Components/Facility/FacilityBlock.tsx b/src/Components/Facility/FacilityBlock.tsx
index d66bd2f8ec1..64c0a24d78d 100644
--- a/src/Components/Facility/FacilityBlock.tsx
+++ b/src/Components/Facility/FacilityBlock.tsx
@@ -1,3 +1,4 @@
+import { Link } from "raviger";
import CareIcon from "../../CAREUI/icons/CareIcon";
import { FacilityModel } from "./models";
@@ -5,8 +6,12 @@ export default function FacilityBlock(props: { facility: FacilityModel }) {
const { facility } = props;
return (
-
-
+
+
{facility.read_cover_image_url ? (
-
+
);
}
diff --git a/src/Components/Facility/FacilityCreate.tsx b/src/Components/Facility/FacilityCreate.tsx
index fc03d8b7e8c..678a356556d 100644
--- a/src/Components/Facility/FacilityCreate.tsx
+++ b/src/Components/Facility/FacilityCreate.tsx
@@ -851,7 +851,7 @@ export const FacilityCreate = (props: FacilityProps) => {
types={["mobile", "landline"]}
/>
-
Spoke Facilities
+ {t("spokes")}
{facilityId && (
{
});
};
+ const spokesQuery = useQuery(routes.getFacilitySpokes, {
+ pathParams: {
+ id: facilityId,
+ },
+ silent: true,
+ });
+
if (isLoading) {
return ;
}
@@ -293,6 +301,20 @@ export const FacilityHome = ({ facilityId }: Props) => {
/>
+ {!!spokesQuery.data?.results.length && (
+