lib/lookbook/helpers/ui_elements_helper.rb in lookbook-2.0.5 vs lib/lookbook/helpers/ui_elements_helper.rb in lookbook-2.1.0
- old
+ new
@@ -15,12 +15,12 @@
# <%= icon :trash %>
# <%= icon :camera, size: 6, style: "color: red;" %>
#
# @param name [Symbol, String] Name of the icon
# @param opts [Hash] Options hash
- def icon(name, **opts)
- lookbook_render :icon, name: name, **opts
+ def icon(name, **)
+ lookbook_render(:icon, name: name, **)
end
# Display a syntax-highlighted block of code.
#
# An alternative to using markdown code blocks for templates that have
@@ -33,16 +33,16 @@
opts[:language] ||= language
lookbook_render :code, **opts, &block
end
# @api private
- def prose(**opts, &block)
- lookbook_render :prose, **opts, &block
+ def prose(**, &block)
+ lookbook_render(:prose, **, &block)
end
# @api private
- def lookbook_tag(tag = :div, **attrs, &block)
- lookbook_render :tag, tag: tag, **attrs, &block
+ def lookbook_tag(tag = :div, **, &block)
+ lookbook_render(:tag, tag: tag, **, &block)
end
# @api private
def lookbook_render(ref, **attrs, &block)
comp = if ref.is_a? ViewComponent::Base