Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[admin] Add the customer sidebar to the orders page #5499

Merged
merged 7 commits into from
Nov 6, 2023
Prev Previous commit
Next Next commit
Allow the page helper to accept extra attributes
  • Loading branch information
elia committed Nov 6, 2023
commit 47c2ae600df63faa005ee3cbe007e29bc2dccea6
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