app/components/coco/app/elements/snackbar/snackbar.rb in coveragebook_components-0.7.10 vs app/components/coco/app/elements/snackbar/snackbar.rb in coveragebook_components-0.8.0.beta.1

- old
+ new

@@ -12,11 +12,11 @@ pending: :loader_2 }.freeze accepts_option :theme, from: [:positive, :warning, :negative, :pending] - renders_one :action, ->(**kwargs, &block) do - Coco::App::Elements::Button.new(**kwargs, theme: :blank, size: :sm, icon: nil) + renders_one :action, ->(*args, **kwargs, &block) do + coco_button(*args, **kwargs, theme: :blank, size: :sm, icon: nil, &block) end before_render do theme = get_option_value(:theme)