Skip to content

Commit

Permalink
Use the new slot API for the modal
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jan 17, 2024
1 parent 8eb4d3a commit 3d5047a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/views/catalog/_citation.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%= render Blacklight::System::ModalComponent.new do |component| %>
<% component.title { t('blacklight.tools.citation') } %>
<% component.with_title { t('blacklight.tools.citation') } %>
<%= render Blacklight::Document::CitationComponent.with_collection(@documents) if @documents.present? %>
<% end %>
4 changes: 2 additions & 2 deletions app/views/catalog/email.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%= render Blacklight::System::ModalComponent.new do |component| %>
<% component.title { t('blacklight.email.form.title') } %>
<% component.with_title { t('blacklight.email.form.title') } %>
<% component.body do %>
<% component.with_body do %>
<%= render 'email_form' %>
<% end %>
<% end %>
4 changes: 2 additions & 2 deletions app/views/catalog/sms.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%= render Blacklight::System::ModalComponent.new do |component| %>
<% component.title { t('blacklight.sms.form.title') } %>
<% component.with_title { t('blacklight.sms.form.title') } %>
<% component.body do %>
<% component.with_body do %>
<%= render 'sms_form' %>
<% end %>
<% end %>

0 comments on commit 3d5047a

Please sign in to comment.