Skip to content

Commit 5054c1d

Browse files
authored
APIS-7861 - Update to use new service-nav (#91)
1 parent ad32105 commit 5054c1d

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

app/uk/gov/hmrc/apirevocationfrontend/views/MainView.scala.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@
1818
@import uk.gov.hmrc.hmrcfrontend.views.viewmodels.footer.Footer
1919
@import uk.gov.hmrc.apirevocationfrontend.config.{FooterConfig, FrontendAppConfig}
2020
@import views.html.helper.CSPNonce
21+
@import uk.gov.hmrc.govukfrontend.views.viewmodels.servicenavigation.{ServiceNavigation, ServiceNavigationItem}
2122

2223
@import uk.gov.hmrc.hmrcfrontend.views.html.helpers.HmrcScripts
2324
@import uk.gov.hmrc.govukfrontend.views.html.components.GovukLayout
2425

2526
@this(
2627
govukLayout: GovukLayout,
27-
hmrcHeader: HmrcHeader,
28+
hmrcStandardHeader: HmrcStandardHeader,
2829
hmrcFooter: HmrcFooter,
2930
hmrcScripts: HmrcScripts,
3031
hmrcHead: HmrcHead
@@ -88,16 +89,16 @@
8889
@govukLayout(
8990
pageTitle = title,
9091
headBlock = Some(hmrcHead()),
91-
headerBlock = Some(hmrcHeader(Header(
92-
homepageUrl ="https://www.gov.uk",
92+
headerBlock = Some(hmrcStandardHeader(
9393
serviceName = Some(messages("service.name")),
94-
navigation = None,
95-
serviceUrl = "",
94+
serviceUrl = None,
9695
displayHmrcBanner = false,
9796
containerClasses = "govuk-width-container",
98-
signOutHref = None,
99-
language = En
100-
))),
97+
serviceNavigation = Some(ServiceNavigation(
98+
serviceName = Some(messages("service.name")),
99+
serviceUrl = None
100+
))
101+
)),
101102
beforeContentBlock = Some(beforeContent),
102103
scriptsBlock = Some(scriptElem),
103104
footerBlock = Some(siteFooter),

conf/application.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ platform {
3535

3636
play-frontend-hmrc {
3737
useRebrand = true
38+
forceServiceNavigation = true
3839
}
3940

4041
microservice {

project/AppDependencies.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import sbt._
33

44
object AppDependencies {
55

6-
lazy val bootstrapVersion = "9.13.0"
7-
lazy val commonDomainVersion = "0.18.0"
6+
lazy val bootstrapVersion = "10.5.0"
7+
lazy val commonDomainVersion = "0.19.0"
88

99
def apply(): Seq[ModuleID] = compile ++ test
1010

1111
lazy val compile = Seq(
1212
"uk.gov.hmrc" %% "bootstrap-frontend-play-30" % bootstrapVersion,
13-
"uk.gov.hmrc" %% "play-frontend-hmrc-play-30" % "12.6.0"
13+
"uk.gov.hmrc" %% "play-frontend-hmrc-play-30" % "12.25.0"
1414
)
1515

1616
lazy val test = Seq(

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ addSbtPlugin("uk.gov.hmrc" % "sbt-auto-build" % "3.24.0")
66
addSbtPlugin("uk.gov.hmrc" % "sbt-distributables" % "2.6.0")
77
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.3.1")
88
addSbtPlugin("org.scalastyle" % "scalastyle-sbt-plugin" % "1.0.0")
9-
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.7")
9+
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.9")
1010
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "2.0.8")
1111
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
1212
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.14.2")

0 commit comments

Comments
 (0)