From fe66f11cfbeb21c89d492a4beab4eb47aa735e29 Mon Sep 17 00:00:00 2001 From: Remko Date: Wed, 27 Sep 2023 09:42:24 +0200 Subject: [PATCH] Cleanup plus requested changes --- .../cardsResultsTemplate/CardsResultsTemplate.tsx | 4 ++-- .../tableResultsTemplate/TableResultsTemplate.tsx | 2 +- .../templates/wooItemDetailTemplate/WOOItemDetailTemplate.tsx | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pwa/src/templates/templateParts/cardsResultsTemplate/CardsResultsTemplate.tsx b/pwa/src/templates/templateParts/cardsResultsTemplate/CardsResultsTemplate.tsx index 0227737a..cf2a776b 100644 --- a/pwa/src/templates/templateParts/cardsResultsTemplate/CardsResultsTemplate.tsx +++ b/pwa/src/templates/templateParts/cardsResultsTemplate/CardsResultsTemplate.tsx @@ -23,10 +23,10 @@ export const CardsResultsTemplate: React.FC = ({ requ {" "} - {request.Publicatiedatum ? translateDate(i18n.language, request.Publicatiedatum) : "NVT"} + {request.Publicatiedatum ? translateDate(i18n.language, request.Publicatiedatum) : "N.v.t."} - {request.Titel} + {request.Titel !== "" ? request.Titel : "Geen titel beschikbaar"} diff --git a/pwa/src/templates/templateParts/tableResultsTemplate/TableResultsTemplate.tsx b/pwa/src/templates/templateParts/tableResultsTemplate/TableResultsTemplate.tsx index 127f2430..0b939e4f 100644 --- a/pwa/src/templates/templateParts/tableResultsTemplate/TableResultsTemplate.tsx +++ b/pwa/src/templates/templateParts/tableResultsTemplate/TableResultsTemplate.tsx @@ -34,7 +34,7 @@ export const TableResultsTemplate: React.FC = ({ requ {requests.map((request) => ( navigate(request.id)}> - {request.Titel} + {request.Titel !== "" ? request.Titel : "Geen titel beschikbaar"} {request.Categorie ?? "-"} {request.Publicatiedatum diff --git a/pwa/src/templates/wooItemDetailTemplate/WOOItemDetailTemplate.tsx b/pwa/src/templates/wooItemDetailTemplate/WOOItemDetailTemplate.tsx index cff76af4..975cfef6 100644 --- a/pwa/src/templates/wooItemDetailTemplate/WOOItemDetailTemplate.tsx +++ b/pwa/src/templates/wooItemDetailTemplate/WOOItemDetailTemplate.tsx @@ -44,9 +44,7 @@ export const WOOItemDetailTemplate: React.FC = ({ wo {getItems.isSuccess && ( <> - {/* This heading is temporary untill all denhaag dependencies are removed from @conduction-components package */} -

{getItems.data.Titel}

- {/* {getItems.data.Titel} */} + {getItems.data.Titel !== "" ? getItems.data.Titel : "Geen titel beschikbaar"}