Skip to content

Commit 47f8ccb

Browse files
author
nick
committed
revert notice file
1 parent f1726e8 commit 47f8ccb

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

app/views/shared/_notice.html.erb

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
1-
<% if flash[:notice]&.any? || flash[:alert]&.any? %>
2-
<div class="pb-4">
3-
<% flash[:notice]&.each do |notice| %>
4-
<div class="rounded-lg bg-warning-400 dark:bg-warning-800 p-4 m-2">
5-
<%= notice %>
6-
</div>
7-
<% end %>
8-
9-
<% flash[:alert]&.each do |alert| %>
10-
<div class="rounded-lg bg-error-400 dark:bg-error-800 p-4 m-2">
11-
<%= alert %>
12-
</div>
13-
<% end %>
14-
</div>
15-
<% end %>
1+
<div class="container flex justify-center w-full align-center">
2+
<% if notice %>
3+
<p class="text-sm notice text-secondary-700"><%= notice %></p>
4+
<% elsif alert %>
5+
<p class="text-sm alert text-tertiary-700"><%= alert %></p>
6+
<% end %>
7+
</div>

0 commit comments

Comments
 (0)