From 683b98df6daa0333cdcf3c2d7c2b7a45f74b61c4 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 5 Jun 2017 19:36:33 -0400 Subject: fixing obnoxious scroll bug --- client/src/lib/components/button.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/lib/components/button.js') diff --git a/client/src/lib/components/button.js b/client/src/lib/components/button.js index 6860f49..87a9bdf 100644 --- a/client/src/lib/components/button.js +++ b/client/src/lib/components/button.js @@ -7,7 +7,7 @@ import { import DeviceInfo from 'react-native-device-info' import Touchable from './touchable' -import { isMobile } from './browser' +import browser from './browser' export default class Button extends Component { render() { @@ -40,8 +40,8 @@ const styles = StyleSheet.create({ padding: 0, }, button: { - padding: isMobile ? 5 : 10, - margin: isMobile ? 5 : 10, + padding: browser.isMobile ? 5 : 10, + margin: browser.isMobile ? 5 : 10, borderRadius: 3, backgroundColor: '#fff', borderBottomColor: '#bbb', -- cgit v1.2.3-70-g09d2