Skip to content

Commit

Permalink
use modern ViewComponent slot syntax as Blacklight
Browse files Browse the repository at this point in the history
- remove stub of removed method from presenter mock in spec
- fixes #238
  • Loading branch information
barmintor committed Aug 11, 2023
1 parent 9e81b9e commit 0e6238c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<%= render(@layout.new(facet_field: @facet_field)) do |component| %>
<% component.label do %>
<% component.with_label do %>
<%= @facet_field.label %>
<% end %>
<% component.body do %>
<% component.with_body do %>
<div class="limit_content range_limit <%= @facet_field.key %>-config blrl-plot-config">
<% if @facet_field.selected_range_facet_item %>
<%= render BlacklightRangeLimit::RangeSegmentsComponent.new(facet_field: @facet_field, facet_items: [@facet_field.selected_range_facet_item], classes: ['current']) %>
Expand Down Expand Up @@ -37,7 +37,7 @@

<%= render BlacklightRangeLimit::RangeFormComponent.new(facet_field: @facet_field, classes: @classes) %>
<%= more_link(key: @facet_field.key, label: @facet_field.label) unless @facet_field.in_modal? %>
<%= with_more_link(key: @facet_field.key, label: @facet_field.label) unless @facet_field.in_modal? %>
<% if @facet_field.missing_facet_item && !request.xhr? %>
<%= render BlacklightRangeLimit::RangeSegmentsComponent.new(facet_field: @facet_field, facet_items: [@facet_field.missing_facet_item], classes: ['missing', 'subsection']) %>
Expand Down
1 change: 0 additions & 1 deletion spec/components/range_facet_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
instance_double(
BlacklightRangeLimit::FacetFieldPresenter,
key: 'key',
html_id: 'id',
active?: false,
collapsed?: false,
in_modal?: false,
Expand Down
1 change: 0 additions & 1 deletion spec/components/range_form_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
instance_double(
BlacklightRangeLimit::FacetFieldPresenter,
key: 'key',
html_id: 'id',
active?: false,
collapsed?: false,
in_modal?: false,
Expand Down

0 comments on commit 0e6238c

Please sign in to comment.