From 5362cf0687c0fbaf5e6e68063b5d454476d98bdf Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Wed, 27 Apr 2022 13:50:28 +0100 Subject: [PATCH] Add navigation items helper --- .../primary_navigation_component.html.erb | 6 +-- .../primary_navigation_component.rb | 4 -- app/helpers/navigation_items_helper.rb | 41 +++++++++++++++++++ app/views/layouts/application.html.erb | 17 ++------ .../primary_navigation_component_spec.rb | 6 +-- 5 files changed, 50 insertions(+), 24 deletions(-) create mode 100644 app/helpers/navigation_items_helper.rb diff --git a/app/components/primary_navigation_component.html.erb b/app/components/primary_navigation_component.html.erb index 0bccaaf81..9cad3bc64 100644 --- a/app/components/primary_navigation_component.html.erb +++ b/app/components/primary_navigation_component.html.erb @@ -2,13 +2,13 @@