Browse Source

Use govuk_notification_banner helper

pull/117/head
Paul Robert Lloyd 3 years ago
parent
commit
a714145e24
  1. 2
      app/views/layouts/application.html.erb

2
app/views/layouts/application.html.erb

@ -59,7 +59,7 @@
<main class="govuk-main-wrapper " id="main-content" role="main"> <main class="govuk-main-wrapper " id="main-content" role="main">
<% flash.each do |type, msg| %> <% flash.each do |type, msg| %>
<%= render GovukComponent::NotificationBannerComponent.new( <%= govuk_notification_banner(
title_text: 'Success', title_text: 'Success',
success: true, title_heading_level: 3, success: true, title_heading_level: 3,
title_id: "swanky-notifications") do |notification_banner| title_id: "swanky-notifications") do |notification_banner|

Loading…
Cancel
Save