app/helpers/components/sheet_helper.rb in shadcn-ui-0.0.10 vs app/helpers/components/sheet_helper.rb in shadcn-ui-0.0.12

- old
+ new

@@ -1,9 +1,10 @@ module Components::SheetHelper def render_sheet(**options, &block) options[:direction] ||= "left" options[:width] ||= "w-3/4" + options[:state] ||= "closed" content_for :sheet_trigger, "", flush: true content_for :sheet_content, "", flush: true content = capture(&block) if block @@ -18,11 +19,11 @@ content_for :sheet_content, capture(&block), flush: true end def direction_class(direction) mappings = { - "left": 'left-0', - "right": 'right-0' + left: "left-0", + right: "right-0" } mappings[direction.to_sym] end end