stubs/hotwire/app/components/modal_component.rb in kaze-0.8.0 vs stubs/hotwire/app/components/modal_component.rb in kaze-0.9.0

- old
+ new

@@ -1,14 +1,14 @@ class ModalComponent < ViewComponent::Base def initialize(attributes = {}) @name = attributes[:name] @show = attributes[:show] || false @max_width = { - :sm => 'sm:max-w-sm', - :md => 'sm:max-w-md', - :lg => 'sm:max-w-lg', - :xl => 'sm:max-w-xl', - '2xl' => 'sm:max-w-2xl' + sm: 'sm:max-w-sm', + md: 'sm:max-w-md', + lg: 'sm:max-w-lg', + xl: 'sm:max-w-xl', + '2xl': 'sm:max-w-2xl' }[attributes[:max_width] || '2xl'] @attributes = attributes.without(:name, :show, :max_width) end end