diff --git a/src/components/BuildingListTable/index.js b/src/components/BuildingListTable/index.js index 615744f0c6685c972679519b49121ef390640c8e..c5cedb2c344ccc09e72a3af9b135f56adde83519 100644 --- a/src/components/BuildingListTable/index.js +++ b/src/components/BuildingListTable/index.js @@ -1,8 +1,12 @@ import React, { PropTypes } from 'react'; import { browserHistory } from 'react-router'; -import './styles.scss'; +import './styles.css'; + +export default function BuildingListTable({ buildings, error }) { + if (error) { + return
; + } -export default function BuildingListTable({ buildings }) { if (!buildings || buildings.length === 0) { return
None
; } @@ -57,4 +61,8 @@ BuildingListTable.propTypes = { borough: PropTypes.string, zipcode: PropTypes.number, })), + error: PropTypes.oneOfType([ + PropTypes.instanceOf(Error), + PropTypes.bool, + ]), }; diff --git a/src/components/BuildingListTable/styles.scss b/src/components/BuildingListTable/styles.css similarity index 100% rename from src/components/BuildingListTable/styles.scss rename to src/components/BuildingListTable/styles.css diff --git a/src/components/BuildingOverviewTop/index.js b/src/components/BuildingOverviewTop/index.js index 319aed1e766edd072049ef05a9d8ace6bc936151..db327353c86cb5d58ff5558c492b71967bba370d 100644 --- a/src/components/BuildingOverviewTop/index.js +++ b/src/components/BuildingOverviewTop/index.js @@ -1,5 +1,5 @@ import React, { PropTypes } from 'react'; -import './styles.scss'; +import './styles.css'; export default function BuildingOverview({ building }) { return ( diff --git a/src/components/BuildingOverviewTop/styles.scss b/src/components/BuildingOverviewTop/styles.css similarity index 100% rename from src/components/BuildingOverviewTop/styles.scss rename to src/components/BuildingOverviewTop/styles.css diff --git a/src/components/SideBarDetail/styles.scss b/src/components/NavBar/style.css similarity index 100% rename from src/components/SideBarDetail/styles.scss rename to src/components/NavBar/style.css diff --git a/src/components/SideBarDetail/index.js b/src/components/SideBarDetail/index.js index c801501d08992dbb9d54990591b2ec602e114956..cf925bc59a8ba697456ae2bab0dfb5548223535f 100644 --- a/src/components/SideBarDetail/index.js +++ b/src/components/SideBarDetail/index.js @@ -1,6 +1,6 @@ import React, { PropTypes } from 'react'; import { Link } from 'react-router'; -import './styles.scss'; +import './styles.css'; export default function SideBarDetail({ buildingId }) { const rootURL = `/buildings/${buildingId}`; @@ -11,12 +11,6 @@ export default function SideBarDetail({ buildingId }) { Dimensions
Utilities - {/*
*/} - {/* Weather*/} - {/*
*/} - {/* Occupancy*/} - {/*
*/} - {/* Financials*/}
); } diff --git a/src/components/TurkHit/styles.scss b/src/components/SideBarDetail/styles.css similarity index 100% rename from src/components/TurkHit/styles.scss rename to src/components/SideBarDetail/styles.css diff --git a/src/components/TurkHit/index.js b/src/components/TurkHit/index.js index 517143a2ddd99a726ce1f8a8388381f2980c1956..d5059b5ac0e7e8ea28b9ac1657303b4fc3a0f307 100644 --- a/src/components/TurkHit/index.js +++ b/src/components/TurkHit/index.js @@ -1,6 +1,6 @@ import React, { PropTypes, Component } from 'react'; import defaultForm from './defaultForm'; -import './styles.scss'; +import './styles.css'; import turkHitPropTypes from '../../containers/Dimensions/propTypes'; import turkStatus from './turkStatus'; @@ -15,9 +15,23 @@ class TurkHit extends Component { }; } + renderDefinitions = () => ( +
+

Mechanical Turk

+
Definitions
+

+ Amazon Mechanical Turk is a marketplace for workers to complete Human + Intelligence Tasks or HITs. +
+ We will be creating HITs for workers to measure the dimensions of a building. + HITs have 6 days to be completed from date of creation. +

+
+ ); + renderDownloadLink = () => { const buildings = this.props.hit.boxBuildingList; - /* eslint-disable jsx-a11y/href-no-hash*/ + /* eslint-disable jsx-a11y/href-no-hash */ return ( { - const { createHit, address, building_id } = this.props; + const { createHitConfirmation, address, building_id } = this.props; return (