sources: factor out 'Fetch source data' box into view component.

This commit is contained in:
evazion
2021-02-25 18:54:15 -06:00
parent 0eea654a48
commit e1ef94faf7
13 changed files with 74 additions and 59 deletions

View 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