Skip to content

Commit

Permalink
chore: change address to inline style
Browse files Browse the repository at this point in the history
  • Loading branch information
kimadactyl committed Nov 12, 2024
1 parent 0628f6d commit 9a530b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions app/components/address_component.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# frozen_string_literal: true

class AddressComponent < ViewComponent::Base
erb_template <<~ERB
<p class="place_info__address" property="address" typeof="PostalAddress">
<%= formatted_address %>
</p>
ERB

def initialize(address:, raw_location: nil)
super
@address = address
Expand Down
3 changes: 0 additions & 3 deletions app/components/address_component/address_component.html.erb

This file was deleted.

0 comments on commit 9a530b1

Please sign in to comment.