Skip to content

Commit

Permalink
revert: don't show view switcher on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Aug 30, 2021
1 parent 2b85bbc commit 85bcb56
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions lib/components/app/app-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class AppMenu extends Component {
id='app-menu'
noCaret
title={(<Icon type='bars' />)}>
{/* This item is duplicated by the view-switcher, but only shown on mobile
when the view switcher isn't shown */}
<MenuItem className='app-menu-route-viewer-link' onClick={this._showRouteViewer}>
<Icon type='bus' /> Route Viewer
</MenuItem>
Expand Down
2 changes: 1 addition & 1 deletion lib/components/mobile/batch-search-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class BatchSearchScreen extends Component {
render () {
return (
<MobileContainer>
<MobileNavigationBar />
<MobileNavigationBar headerText='Plan Your Trip' />
<div className='batch-search-settings mobile-padding'>
<LocationField
locationType='from'
Expand Down
1 change: 1 addition & 0 deletions lib/components/mobile/route-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class MobileRouteViewer extends Component {
return (
<MobileContainer>
<MobileNavigationBar
headerText={this.props.languageConfig.routeViewer || 'Route Viewer'}
onBackClicked={this._backClicked}
showBackButton
/>
Expand Down
2 changes: 1 addition & 1 deletion lib/components/mobile/search-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class MobileSearchScreen extends Component {
render () {
return (
<MobileContainer>
<MobileNavigationBar />
<MobileNavigationBar headerText='Plan Your Trip' />
<div className='search-settings mobile-padding'>
<LocationField
locationType='from'
Expand Down
8 changes: 4 additions & 4 deletions lib/components/mobile/welcome-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'

import MobileContainer from './container'
import LocationField from '../form/connected-location-field'
import DefaultMap from '../map/default-map'
import MobileNavigationBar from './navigation-bar'

import { MobileScreens, setMobileScreen } from '../../actions/ui'
import { setLocationToCurrent } from '../../actions/map'

import MobileNavigationBar from './navigation-bar'
import MobileContainer from './container'

class MobileWelcomeScreen extends Component {
static propTypes = {
setLocationToCurrent: PropTypes.func,
Expand All @@ -36,7 +36,7 @@ class MobileWelcomeScreen extends Component {
render () {
return (
<MobileContainer>
<MobileNavigationBar />
<MobileNavigationBar headerText='Plan Your Trip' />
<div className='welcome-location mobile-padding'>
<LocationField
inputPlaceholder='Where do you want to go?'
Expand Down

0 comments on commit 85bcb56

Please sign in to comment.