Skip to content

Commit

Permalink
Merge pull request #222 from JackBlackLight/subclass_from_blacklight_…
Browse files Browse the repository at this point in the history
…component

subclass Blacklight::Component to enable template overrides in blacklight installations
  • Loading branch information
jcoyne committed Jan 20, 2023
2 parents 4b44de7 + d2a3c94 commit cbb4c6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module BlacklightRangeLimit
class RangeFacetComponent < ::ViewComponent::Base
class RangeFacetComponent < Blacklight::Component
renders_one :more_link, ->(key:, label:) do
tag.div class: 'more_facets' do
link_to t('blacklight.range_limit.view_larger', field_name: label),
Expand Down
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module BlacklightRangeLimit
class RangeFormComponent < ::ViewComponent::Base
class RangeFormComponent < Blacklight::Component
delegate :search_action_path, to: :helpers

def initialize(facet_field:, classes: BlacklightRangeLimit.classes)
Expand Down
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module BlacklightRangeLimit
class RangeSegmentsComponent < ::ViewComponent::Base
class RangeSegmentsComponent < Blacklight::Component
def initialize(facet_field:, facet_items: nil, item_component: nil, classes: [])
super

Expand Down

0 comments on commit cbb4c6f

Please sign in to comment.