Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-web
Commits
05004dd4
Commit
05004dd4
authored
Jan 31, 2019
by
Andrew Hrdy
Browse files
Remove Labels
Closes
#67
parent
0f884393
Pipeline
#3781
passed with stage
in 1 minute and 30 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/FacilityDialog.js
View file @
05004dd4
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
>
...
...
src/components/FacilityLabels.js
deleted
100644 → 0
View file @
0f884393
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
src/components/Sidebar.js
View file @
05004dd4
...
@@ -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
>
...
...
src/styles/components/facilityDialog.scss
View file @
05004dd4
...
@@ -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
;
...
...
src/styles/components/facilityLabels.scss
deleted
100644 → 0
View file @
0f884393
@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
src/styles/whatsOpen.scss
View file @
05004dd4
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment