Skip to content

Commit

Permalink
fix(mobile): disable usersettings overlay on welcome screen
Browse files Browse the repository at this point in the history
- this only shows up when user data is stored and shown
  • Loading branch information
evansiroky committed Mar 1, 2020
1 parent 4f6f4da commit 7457a62
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/components/mobile/welcome-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ import PropTypes from 'prop-types'
import { connect } from 'react-redux'

import MobileContainer from './container'
import UserSettings from '../form/user-settings'
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 { getShowUserSettings } from '../../util/state'

class MobileWelcomeScreen extends Component {
static propTypes = {
Expand Down Expand Up @@ -38,7 +36,7 @@ class MobileWelcomeScreen extends Component {
}

render () {
const { showUserSettings, title } = this.props
const { title } = this.props
return (
<MobileContainer>
<MobileNavigationBar title={title} />
Expand All @@ -52,7 +50,6 @@ class MobileWelcomeScreen extends Component {
</div>
<div className='welcome-map'>
<DefaultMap onSetLocation={this._locationSetFromPopup} />
{showUserSettings ? <UserSettings /> : null}
</div>
</MobileContainer>
)
Expand All @@ -62,8 +59,7 @@ class MobileWelcomeScreen extends Component {
// connect to the redux store

const mapStateToProps = (state, ownProps) => {
const showUserSettings = getShowUserSettings(state.otp)
return { showUserSettings }
return {}
}

const mapDispatchToProps = {
Expand Down

0 comments on commit 7457a62

Please sign in to comment.