Skip to content

Commit

Permalink
Add none option to emphasis prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomm1128 committed Dec 12, 2024
1 parent d5e29a8 commit 6007673
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type HomeAddressStreetProps = {
className?: string,
data?: { [key: string]: string },
dark?: boolean,
emphasis: "street" | "city",
emphasis: "street" | "city" | "none",
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
homeId: string,
houseStyle: string,
Expand Down Expand Up @@ -129,6 +129,19 @@ const HomeAddressStreet = (props: HomeAddressStreetProps): React.ReactElement =>
</div>
</div>
}
{emphasis == 'none' &&
<div>
<Body>
{joinPresent([titleize(address), houseStyle], ' · ')}
</Body>
<Body>{titleize(addressCont)}</Body>
<div>
<Body color="light">
{`${titleize(city)}, ${state} ${zipcode}`}
</Body>
</div>
</div>
}
{homeId &&
<Hashtag
classname="home-hashtag"
Expand Down

0 comments on commit 6007673

Please sign in to comment.