Sha256: 0d1c369321aede22d05f9175f02abc9c8baf69acf674c40c6b168e7628ad7933
Contents?: true
Size: 1.49 KB
Versions: 3
Compression:
Stored size: 1.49 KB
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import { joinPresent, titleize } from '../utilities/text' import { Body, Hashtag, Title } from '../' type HomeAddressStreetProps = { address: String, addressCont: String, city: String, className?: String, dark?: Boolean, homeId: Number, houseStyle: String, state: String, zipcode: String, territory: String, } const classes = (className, dark) => ( classnames(className, { 'pb_home_address_street': !dark, 'pb_home_address_street_dark': dark, }) ) const HomeAddressStreet = ({ address, addressCont, city, className, dark = false, homeId, houseStyle, state, zipcode, territory, }: HomeAddressStreetProps) => ( <div className={classes(className, dark)}> <Title className="pb_home_address_street_address" dark={dark} size={4} > {joinPresent([titleize(address), houseStyle], ' ยท ')} </Title> <Title className="pb_home_address_street_address" dark={dark} size={4} > {titleize(addressCont)} </Title> <Body color="light"> {`${titleize(city)}, ${state} ${zipcode}`} </Body> <If condition={homeId}> <Hashtag classname="home-hashtag" dark={dark} text={homeId} type="home" url="#" /> </If> <Body color="light" tag="span" > <small>{territory}</small> </Body> </div> ) export default HomeAddressStreet
Version data entries
3 entries across 3 versions & 1 rubygems