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 React from 'react';
import Dialog from 'material-ui/Dialog'; import Dialog from 'material-ui/Dialog';
import Grid from 'material-ui/Grid'; import Grid from 'material-ui/Grid';
import FacilityLabels from './FacilityLabels';
import WeekHours from './WeekHours'; import WeekHours from './WeekHours';
import Button from 'material-ui/Button'; import Button from 'material-ui/Button';
import Avatar from 'material-ui/Avatar'; import Avatar from 'material-ui/Avatar';
...@@ -64,10 +63,6 @@ class FacilityDialog extends React.Component { ...@@ -64,10 +63,6 @@ class FacilityDialog extends React.Component {
</Typography> </Typography>
</Grid> </Grid>
<Grid item className={'fd-facility-labels'}>
<FacilityLabels facility={facility} />
</Grid>
<Grid item className={'fd-week-hours'}> <Grid item className={'fd-week-hours'}>
<WeekHours facility={facility} /> <WeekHours facility={facility} />
</Grid> </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'; ...@@ -8,7 +8,6 @@ import FacilitiesMap from '../components/FacilitiesMap';
import MapDialog from '../components/MapDialog'; import MapDialog from '../components/MapDialog';
import classNames from 'classnames'; import classNames from 'classnames';
import WeekHours from './WeekHours'; import WeekHours from './WeekHours';
import FacilityLabels from './FacilityLabels';
import CloseIcon from 'material-ui-icons/Close'; import CloseIcon from 'material-ui-icons/Close';
import IconButton from 'material-ui/IconButton'; import IconButton from 'material-ui/IconButton';
import {removeBrackets} from '../utils/nameUtils'; import {removeBrackets} from '../utils/nameUtils';
...@@ -71,7 +70,6 @@ class Sidebar extends React.Component { ...@@ -71,7 +70,6 @@ class Sidebar extends React.Component {
content={facility.facility_location && facility.facility_location.address} /> content={facility.facility_location && facility.facility_location.address} />
<TextwTitle label="Phone Number" <TextwTitle label="Phone Number"
content={facility.phone_number ? phoneFormatter.format(facility.phone_number, '(NNN) NNN-NNNN') : 'Unknown'} /> 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} />} /> <TextwTitle label="Hours" content={<WeekHours facility={facility} />} />
</div> </div>
</div> </div>
......
...@@ -60,12 +60,6 @@ ...@@ -60,12 +60,6 @@
align-items: center; align-items: center;
} }
.fd-facility-labels {
@extend .fd-small-grid;
width: 100%;
}
.fd-week-hours { .fd-week-hours {
@extend .fd-small-grid; @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 @@ ...@@ -8,7 +8,6 @@
@import './components/facilityCategory'; @import './components/facilityCategory';
@import './components/facilityDialog'; @import './components/facilityDialog';
@import './components/facilityStatus'; @import './components/facilityStatus';
@import './components/facilityLabels';
@import './components/favoriteButton'; @import './components/favoriteButton';
@import './components/mapDialog'; @import './components/mapDialog';
@import './components/sidebar'; @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