diff --git a/src/components/SideBarDetail/index.js b/src/components/SideBarDetail/index.js index eb020b575e61806bc3de8df1357440b8f39e6d64..bf06ec463dee55120fc4fb00d00088f2b9c0e5ea 100644 --- a/src/components/SideBarDetail/index.js +++ b/src/components/SideBarDetail/index.js @@ -1,7 +1,8 @@ import React from 'react'; import PropTypes from 'prop-types'; import { Link, browserHistory } from 'react-router'; -import ReactTooltip from 'react-tooltip'; +import { UncontrolledTooltip } from 'reactstrap'; +import { Icon } from 'react-fa'; import './styles.css'; import { contactsPropTypes } from '../../containers/Project/propTypes'; import buildingDetailPropType from '../../containers/Building/propTypes'; @@ -47,21 +48,19 @@ export default function SideBarDetail({ building, children, contacts, user }) { {val} )); - const addressListText = 'There can be multiple addresses for a single building if the building has multiple entrances'; addressListSection = (
-
Borough: {building.borough}
Zipcode: {building.zipcode}
-
- Address List (?) +
+ Address List{' '} +
+ + There can be multiple addresses for a single building + if the building has multiple entrances + {addressListString} @@ -165,6 +164,19 @@ export default function SideBarDetail({ building, children, contacts, user }) { + {user.permissions['view::buildingDetailTargetingScore'] && building.targeting_score ? ( + + + + + A lower targeting scores is correlated with higher chance of going through + with a retrofit. Below 50 is considered very good. + + + ) : null}
Bin {building.bin}
Targeting + {building.targeting_score.toFixed(2)} + {' '} +
diff --git a/src/containers/Building/propTypes.js b/src/containers/Building/propTypes.js index d5fe2ee462ab4d8899b4c010fce6c188548a2c2d..f1d4a886b91a6bce8ae9d5c411afe516fb08ef92 100644 --- a/src/containers/Building/propTypes.js +++ b/src/containers/Building/propTypes.js @@ -18,6 +18,7 @@ export const overviewPropTypes = { lot_id: number, borough_id: string, zipcode: string, + targeting_score: number, };