From 801ecbfa5a78ac2c871e4cdece7ec252d1f314b4 Mon Sep 17 00:00:00 2001 From: David Yip Date: Fri, 17 Nov 2017 00:11:01 -0600 Subject: [PATCH] Throw layout, isWide, navbarUnder back into mapStateToProps. This gets wide view, auto layout, and navbar-under-mobile working again. --- app/javascript/mastodon/features/ui/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/javascript/mastodon/features/ui/index.js b/app/javascript/mastodon/features/ui/index.js index fc51df163c..345492577a 100644 --- a/app/javascript/mastodon/features/ui/index.js +++ b/app/javascript/mastodon/features/ui/index.js @@ -54,6 +54,9 @@ const messages = defineMessages({ const mapStateToProps = state => ({ isComposing: state.getIn(['compose', 'is_composing']), hasComposingText: state.getIn(['compose', 'text']) !== '', + layout: state.getIn(['local_settings', 'layout']), + isWide: state.getIn(['local_settings', 'stretch']), + navbarUnder: state.getIn(['local_settings', 'navbar_under']) }); const keyMap = {