sources: factor out 'Fetch source data' box into view component.
This commit is contained in:
10
app/components/source_data_component.rb
Normal file
10
app/components/source_data_component.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class SourceDataComponent < ApplicationComponent
|
||||
attr_reader :source
|
||||
delegate :spinner_icon, to: :helpers
|
||||
|
||||
def initialize(source:)
|
||||
@source = source
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user