Github user garrensmith commented on a diff in the pull request: https://github.com/apache/couchdb-fauxton/pull/883#discussion_r108349952 --- Diff: app/addons/fauxton/appwrapper.js --- @@ -49,27 +53,52 @@ class ContentWrapper extends React.Component { } } -const App = ({router}) => { - return ( - <div> - <PermanentNotification /> - <div id="notifications"> - <NotificationController /> - </div> - <div role="main" id="main"> - <div id="app-container"> - <div className="wrapper"> - <div className="pusher"> - <ContentWrapper router={router} /> - </div> - <div id="primary-navbar"> - <NavBar/> +class App extends React.Component { + constructor (props) { + super(props); + this.state = this.getStoreState(); + } + + getStoreState () { + return { + isPrimaryNavMinimized: navBarStore.isMinimized() + }; + } + + componentDidMount () { + navBarStore.on('change', this.onChange, this); + } + + onChange () { + this.setState(this.getStoreState()); + } + + render () { + const mainClass = classNames( --- End diff -- Nice, this is very cool idea
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---