Skip to content

Commit

Permalink
Allow the page helper to accept extra attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Nov 6, 2023
1 parent fa5011e commit 47c2ae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/app/components/solidus_admin/layout/page_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

module SolidusAdmin::Layout::PageHelpers
def page(&block)
tag.div(capture(&block), class: "px-4 relative", "data-controller": stimulus_id)
def page(**attrs, &block)
tag.div(capture(&block), class: "px-4 relative", "data-controller": stimulus_id, **attrs)
end

def page_header_actions(&block)
Expand Down

0 comments on commit 47c2ae6

Please sign in to comment.