Class: Avo::FlashAlertsComponent

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
ApplicationHelper
Defined in:
app/components/avo/flash_alerts_component.rb

Instance Method Summary collapse

Methods included from ApplicationHelper

#a_button, #a_link, #button_classes, #empty_state, #get_model_class, #input_classes, #mount_path, #render_license_warning, #render_license_warnings, #root_path_without_url, #svg, #white_panel_classes

Constructor Details

#initialize(flashes: []) ⇒ FlashAlertsComponent

Returns a new instance of FlashAlertsComponent.



6
7
8
# File 'app/components/avo/flash_alerts_component.rb', line 6

def initialize(flashes: [])
  @flashes = flashes
end