From 83ac3985a3aaf16dcfe03a964940dc10bf4faf6d Mon Sep 17 00:00:00 2001 From: Daniel Clarke Date: Tue, 2 Jul 2024 14:19:18 +0100 Subject: [PATCH] re-added table renderers to gov uk table renderer --- .../Entities/Implementations/HtmlTableRenderer.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Dfe.EarlyYearsQualification.Content/Renderers/Entities/Implementations/HtmlTableRenderer.cs b/src/Dfe.EarlyYearsQualification.Content/Renderers/Entities/Implementations/HtmlTableRenderer.cs index 9eaff461..b3b4b839 100644 --- a/src/Dfe.EarlyYearsQualification.Content/Renderers/Entities/Implementations/HtmlTableRenderer.cs +++ b/src/Dfe.EarlyYearsQualification.Content/Renderers/Entities/Implementations/HtmlTableRenderer.cs @@ -1,6 +1,10 @@ using Contentful.Core.Models; using Dfe.EarlyYearsQualification.Content.Extensions; using Dfe.EarlyYearsQualification.Content.Renderers.GovUk; +using TableRenderer = Dfe.EarlyYearsQualification.Content.Renderers.GovUk.TableRenderer; +using TableRowRenderer = Dfe.EarlyYearsQualification.Content.Renderers.GovUk.TableRowRenderer; +using TableHeadingRenderer = Dfe.EarlyYearsQualification.Content.Renderers.GovUk.TableHeadingRenderer; +using TableCellRenderer = Dfe.EarlyYearsQualification.Content.Renderers.GovUk.TableCellRenderer; namespace Dfe.EarlyYearsQualification.Content.Renderers.Entities.Implementations; @@ -13,6 +17,11 @@ public HtmlTableRenderer() { Renderer.AddCommonRenderers() .AddRenderer(new UnorderedListRenderer { Order = 18 }); + + Renderer.AddRenderer(new TableRenderer { Order = 19 }); + Renderer.AddRenderer(new TableRowRenderer { Order = 20 }); + Renderer.AddRenderer(new TableHeadingRenderer { Order = 21 }); + Renderer.AddRenderer(new TableCellRenderer { Order = 22 }); } public async Task ToHtml(Document? content)