Fix map switches colors

This commit is contained in:
Letícia Camara 2018-10-18 16:10:17 -03:00
parent 06ff3e0ff9
commit 4283544cb2

View file

@ -88,7 +88,7 @@ class LayerMapSwitches extends React.Component {
onChange={this.props.onChange('ambassadorLayer')} onChange={this.props.onChange('ambassadorLayer')}
value="ambassadors" value="ambassadors"
classes={{ classes={{
switchBase: ( (this.props.ambsMap) ? classes.iOSSwitchBaseBlue : classes.iOSSwitchBaseGreen ), switchBase: classes.iOSSwitchBaseBlue,
bar: classes.iOSBar, bar: classes.iOSBar,
icon: classes.iOSIcon, icon: classes.iOSIcon,
iconChecked: classes.iOSIconChecked, iconChecked: classes.iOSIconChecked,
@ -102,7 +102,7 @@ class LayerMapSwitches extends React.Component {
control={ control={
<Switch <Switch
classes={{ classes={{
switchBase: ( (this.props.ambsMap) ? classes.iOSSwitchBaseBlue : classes.iOSSwitchBaseGreen ), switchBase: classes.iOSSwitchBaseGreen,
bar: classes.iOSBar, bar: classes.iOSBar,
icon: classes.iOSIcon, icon: classes.iOSIcon,
iconChecked: classes.iOSIconChecked, iconChecked: classes.iOSIconChecked,