Skip to content

Commit

Permalink
fix: Disable searchBar on monbileApp
Browse files Browse the repository at this point in the history
  • Loading branch information
Crash-- committed Jan 9, 2019
1 parent 53f42b6 commit cb8f83c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Bar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
getTracker,
configureTracker
} from 'cozy-ui/react/helpers/tracker'
import { isMobileApp } from 'cozy-device-helper'

import Banner from 'components/Banner'
import Drawer from 'components/Drawer'
Expand Down Expand Up @@ -37,7 +38,8 @@ class Bar extends Component {
drawerVisible: false,
usageTracker: null,
supportDisplayed: false,
searchBarEnabled: props.currentApp === 'Cozy Drive' && !props.isPublic
searchBarEnabled:
props.currentApp === 'Cozy Drive' && !props.isPublic && !isMobileApp()
}
}

Expand Down

0 comments on commit cb8f83c

Please sign in to comment.