From 5fb858c133e7f42beecdad4bc7e86a321fd141e2 Mon Sep 17 00:00:00 2001 From: DanielCliftonGuardian <110032454+DanielCliftonGuardian@users.noreply.github.com> Date: Wed, 12 Jun 2024 10:34:48 +0100 Subject: [PATCH] Add euro 2024 to first place of sports nav --- common/app/navigation/NavLinks.scala | 4 +++ .../test/resources/reference-navigation.json | 35 +++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/common/app/navigation/NavLinks.scala b/common/app/navigation/NavLinks.scala index 73e798e97d6..ea61a3288c1 100644 --- a/common/app/navigation/NavLinks.scala +++ b/common/app/navigation/NavLinks.scala @@ -393,6 +393,7 @@ object NavLinks { longTitle = Some("Sport home"), iconName = Some("home"), List( + euro2024, football, cricket, rugbyUnion, @@ -408,6 +409,7 @@ object NavLinks { ) val auSportPillar = ukSportPillar.copy( children = List( + euro2024, football, AFL, NRL, @@ -421,6 +423,7 @@ object NavLinks { ) val usSportPillar = ukSportPillar.copy( children = List( + euro2024, usSoccer, NFL, tennis, @@ -434,6 +437,7 @@ object NavLinks { ) val intSportPillar = ukSportPillar.copy( children = List( + euro2024, football, cricket, rugbyUnion, diff --git a/common/test/resources/reference-navigation.json b/common/test/resources/reference-navigation.json index 82ca2fc1d4f..aed9348ffe0 100644 --- a/common/test/resources/reference-navigation.json +++ b/common/test/resources/reference-navigation.json @@ -451,6 +451,13 @@ "longTitle": "Sport home", "iconName": "home", "children": [ + { + "title": "Euro 2024", + "url": "/football/euro-2024", + "longTitle": "football/euro-2024", + "children": [], + "classList": [] + }, { "title": "Football", "url": "/football", @@ -1298,6 +1305,13 @@ "longTitle": "Sport home", "iconName": "home", "children": [ + { + "title": "Euro 2024", + "url": "/football/euro-2024", + "longTitle": "football/euro-2024", + "children": [], + "classList": [] + }, { "title": "Soccer", "url": "/us/soccer", @@ -2023,6 +2037,13 @@ "longTitle": "Sport home", "iconName": "home", "children": [ + { + "title": "Euro 2024", + "url": "/football/euro-2024", + "longTitle": "football/euro-2024", + "children": [], + "classList": [] + }, { "title": "Football", "url": "/football", @@ -2840,6 +2861,13 @@ "longTitle": "Sport home", "iconName": "home", "children": [ + { + "title": "Euro 2024", + "url": "/football/euro-2024", + "longTitle": "football/euro-2024", + "children": [], + "classList": [] + }, { "title": "Football", "url": "/football", @@ -3846,6 +3874,13 @@ "longTitle": "Sport home", "iconName": "home", "children": [ + { + "title": "Euro 2024", + "url": "/football/euro-2024", + "longTitle": "football/euro-2024", + "children": [], + "classList": [] + }, { "title": "Football", "url": "/football",