diff --git a/app/components/address_component.rb b/app/components/address_component.rb index 1eb8469b5..b6b9263c0 100644 --- a/app/components/address_component.rb +++ b/app/components/address_component.rb @@ -1,6 +1,12 @@ # frozen_string_literal: true class AddressComponent < ViewComponent::Base + erb_template <<~ERB +

+ <%= formatted_address %> +

+ ERB + def initialize(address:, raw_location: nil) super @address = address diff --git a/app/components/address_component/address_component.html.erb b/app/components/address_component/address_component.html.erb deleted file mode 100644 index 6245d0a5e..000000000 --- a/app/components/address_component/address_component.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -

- <%= formatted_address %> -