Skip to content

Commit

Permalink
Minor address change
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushjindal committed Jun 18, 2024
1 parent 35bcf88 commit da46506
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions blocks/agent-about/agent-about.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
}

.agent-about.block>div.cols-1,
.agent-about.block>div.cols-2,
.agent-about.block>div.cols-3 {
.agent-about.block>div.cols-2 {
padding-bottom: 2rem;
}

Expand Down
12 changes: 6 additions & 6 deletions blocks/agent-address/agent-address.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ import {
} from '../../scripts/dom-helpers.js';

export default function decorate(block) {
const streetAddress = getMetadata('streetaddress');
const addressLocality = getMetadata('addresslocality');
const addressRegion = getMetadata('addressregion');
const postalCode = getMetadata('postalcode');
const streetAddress = getMetadata('street-address');
const city = getMetadata('city');
const state = getMetadata('state');
const zip = getMetadata('zip');

const textDiv = div({ class: 'address' },
p('Berkshire Hathaway HomeServices'),
p('Commonwealth Real Estate'),
p(streetAddress),
p(`${addressLocality}, ${addressRegion} ${postalCode}`),
p(`${city}, ${state} ${zip}`),
);
const text = `${streetAddress}, ${addressLocality}, ${addressRegion} ${postalCode}`;
const text = `${streetAddress}, ${city}, ${state} ${zip}`;

const anchor = a({ href: `https://maps.google.com/maps?q=${text}`, target: '_blank' }, 'Directions');
block.replaceChildren(textDiv, anchor);
Expand Down

0 comments on commit da46506

Please sign in to comment.