diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-09 14:12:00 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-09 14:12:00 +0100 |
commit | d6a456dc714337a696e206c31d182630a94f89cd (patch) | |
tree | 86b3a2f45798f2a69c66a16a5052585583f4265c /app/assets/javascripts/components/features/ui/index.jsx | |
parent | 75f80bef107cfe9e9c0e6ba3dc51ef86c89e40cc (diff) | |
parent | 3bddd647e02b4b831316e893ad756e6cf5d74c0b (diff) |
Merge branch 'blackle-dropdown'
Diffstat (limited to 'app/assets/javascripts/components/features/ui/index.jsx')
-rw-r--r-- | app/assets/javascripts/components/features/ui/index.jsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/components/features/ui/index.jsx b/app/assets/javascripts/components/features/ui/index.jsx index db793f945..ee2e29d6f 100644 --- a/app/assets/javascripts/components/features/ui/index.jsx +++ b/app/assets/javascripts/components/features/ui/index.jsx @@ -11,6 +11,7 @@ import Notifications from '../notifications'; import { debounce } from 'react-decoration'; import { uploadCompose } from '../../actions/compose'; import { connect } from 'react-redux'; +import { isMobile } from '../../is_mobile' const UI = React.createClass({ @@ -64,11 +65,9 @@ const UI = React.createClass({ }, render () { - const layoutBreakpoint = 1024; - let mountedColumns; - if (this.state.width <= layoutBreakpoint) { + if (isMobile(this.state.width)) { mountedColumns = ( <ColumnsArea> {this.props.children} |