Commit 05004dd4 authored by Andrew Hrdy's avatar Andrew Hrdy

Remove Labels

Closes #67
parent 0f884393
Pipeline #3781 passed with stage
in 1 minute and 30 seconds
import React from 'react';
import Dialog from 'material-ui/Dialog';
import Grid from 'material-ui/Grid';
import FacilityLabels from './FacilityLabels';
import WeekHours from './WeekHours';
import Button from 'material-ui/Button';
import Avatar from 'material-ui/Avatar';
......@@ -64,10 +63,6 @@ class FacilityDialog extends React.Component {
</Typography>
</Grid>
<Grid item className={'fd-facility-labels'}>
<FacilityLabels facility={facility} />
</Grid>
<Grid item className={'fd-week-hours'}>
<WeekHours facility={facility} />
</Grid>
......
import React from 'react';
import Chip from 'material-ui/Chip';
const FacilityLabels = ({facility}) => {
return (
<div className={'label-chip-holder'}>
{facility.facility_labels && facility.facility_labels.map((label) =>
<Chip className={'label-chip'} key={label} label={label} />
)}
</div>
);
};
export default FacilityLabels;
\ No newline at end of file
......@@ -8,7 +8,6 @@ import FacilitiesMap from '../components/FacilitiesMap';
import MapDialog from '../components/MapDialog';
import classNames from 'classnames';
import WeekHours from './WeekHours';
import FacilityLabels from './FacilityLabels';
import CloseIcon from 'material-ui-icons/Close';
import IconButton from 'material-ui/IconButton';
import {removeBrackets} from '../utils/nameUtils';
......@@ -71,7 +70,6 @@ class Sidebar extends React.Component {
content={facility.facility_location && facility.facility_location.address} />
<TextwTitle label="Phone Number"
content={facility.phone_number ? phoneFormatter.format(facility.phone_number, '(NNN) NNN-NNNN') : 'Unknown'} />
<TextwTitle label="Labels" content={<FacilityLabels facility={facility} />} />
<TextwTitle label="Hours" content={<WeekHours facility={facility} />} />
</div>
</div>
......
......@@ -60,12 +60,6 @@
align-items: center;
}
.fd-facility-labels {
@extend .fd-small-grid;
width: 100%;
}
.fd-week-hours {
@extend .fd-small-grid;
......
@import '../variables';
.label-chip-holder {
display: flex;
flex-wrap: wrap;
}
.label-chip {
height: 24px !important;
margin: 2px;
}
@media screen and (max-width: map-get($breakpoints, lg) - 1px) {
.label-chip-holder {
justify-content: center;
}
}
\ No newline at end of file
......@@ -8,7 +8,6 @@
@import './components/facilityCategory';
@import './components/facilityDialog';
@import './components/facilityStatus';
@import './components/facilityLabels';
@import './components/favoriteButton';
@import './components/mapDialog';
@import './components/sidebar';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment