Skip to content

Commit

Permalink
DDCE-6034 Update Admin route to use HmrcInternalHead and HmrcInternal…
Browse files Browse the repository at this point in the history
…Header (#539)
  • Loading branch information
Taiwo-AB authored Aug 30, 2024
1 parent de29d39 commit b3fc8eb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 46 deletions.
3 changes: 2 additions & 1 deletion app/uk/gov/hmrc/merchandiseinbaggage/views/Layout.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
@this(
govukLayout: layouts.govukLayout,
hmrcHead: HmrcHead,
hmrcInternalHead: HmrcInternalHead,
hmrcScripts: HmrcScripts,
hmrcTimeoutDialog: HmrcTimeoutDialog
)
Expand Down Expand Up @@ -74,7 +75,7 @@
@if(isAssistedDigital) {
@govukLayout(
pageTitle = pageTitle,
headBlock = Some(hmrcHead(headBlock = Some(defaultHead))),
headBlock = Some(hmrcInternalHead(headBlock = Some(defaultHead))),
scriptsBlock = Some(hmrcScripts(scriptsBlock = Some(defaultScripts))),
beforeContentBlock = None,
maybeBackButtonUrl = maybeBackButtonUrl,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*@

@import uk.gov.hmrc.govukfrontend.views.viewmodels.header.Header
@import uk.gov.hmrc.merchandiseinbaggage.views.html.components
@import uk.gov.hmrc.hmrcfrontend.views.html.components._
@import uk.gov.hmrc.hmrcfrontend.views.html.helpers._
@import uk.gov.hmrc.hmrcfrontend.views.viewmodels.reporttechnicalissue.ReportTechnicalIssue
@import uk.gov.hmrc.merchandiseinbaggage.config.AppConfig
Expand All @@ -26,13 +26,13 @@
@this(
govukTemplate: GovukTemplate,
govukHeader: GovukHeader,
hmrcInternalHeader: HmrcInternalHeader,
govukFooter: GovukFooter,
govukBackLink: GovukBackLink,
hmrcLanguageSelectHelper: HmrcLanguageSelectHelper,
hmrcReportTechnicalIssueHelper: HmrcReportTechnicalIssueHelper,
hmrcStandardFooter: HmrcStandardFooter,
govukSkipLink: GovukSkipLink,
siteHeader: components.siteHeader,
govukSkipLink: GovukSkipLink
)

@(
Expand All @@ -49,7 +49,11 @@

@headerDefault = {
@if(isAssistedDigital) {
@siteHeader()
@hmrcInternalHeader(InternalHeader(
homepageUrl = routes.ImportExportChoiceController.onPageLoad.url,
serviceName = Some(messages("service.name")),
serviceUrl = routes.ImportExportChoiceController.onPageLoad.url
))
} else {
@headerBlock.getOrElse {
@govukHeader(Header(
Expand Down
4 changes: 2 additions & 2 deletions project/AppDependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import sbt.*

object AppDependencies {

private val bootstrapVersion = "9.3.0"
private val bootstrapVersion = "9.4.0"

private val compile: Seq[ModuleID] = Seq(
"uk.gov.hmrc" %% "bootstrap-frontend-play-30" % bootstrapVersion,
"uk.gov.hmrc" %% "play-frontend-hmrc-play-30" % "10.9.0",
"uk.gov.hmrc" %% "play-frontend-hmrc-play-30" % "10.11.0",
"uk.gov.hmrc.mongo" %% "hmrc-mongo-play-30" % "2.2.0",
"com.beachape" %% "enumeratum-play" % "1.8.1",
"org.webjars.npm" % "accessible-autocomplete" % "2.0.4",
Expand Down

0 comments on commit b3fc8eb

Please sign in to comment.