Sha256: 1f1e098bfa78d6e6eaa2d6e3db4e7775b013ee088c3fc60bc17604ce82176a0c

Contents?: true

Size: 358 Bytes

Versions: 6

Compression:

Stored size: 358 Bytes

Contents

<%= react_component "Toast", { notice: flash[:notice], error: flash[:error] } %>
<% if Rails.env.test? && flash.any? %>
  <div class="flash-test-helper">
    <% %i[notice error].each do |type| %>
      <% if flash[type] || true %>
        <div class="<%= type %>">
          <%= flash[type] %>
        </div>
      <% end %>
    <% end %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pages_core-3.15.5 app/views/layouts/admin/_toast.html.erb
pages_core-3.15.4 app/views/layouts/admin/_toast.html.erb
pages_core-3.15.3 app/views/layouts/admin/_toast.html.erb
pages_core-3.15.2 app/views/layouts/admin/_toast.html.erb
pages_core-3.15.1 app/views/layouts/admin/_toast.html.erb
pages_core-3.14.0 app/views/layouts/admin/_toast.html.erb