1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

modify: fix to use navWidth instead of listWidth

This commit is contained in:
sota1235
2016-12-11 15:21:57 +09:00
parent ca904d69e5
commit 556b53181f
2 changed files with 4 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ class Main extends React.Component {
this.state = {
isRightSliderFocused: false,
listWidth: config.listWidth,
navWidth: config.listWidth,
navWidth: config.navWidth,
isLeftSliderFocused: false
}
}
@@ -109,10 +109,10 @@ class Main extends React.Component {
let { dispatch } = this.props
let navWidth = this.state.navWidth
// TODO: ConfigManager should dispatch itself.
ConfigManager.set({listWidth: navWidth})
ConfigManager.set({ navWidth })
dispatch({
type: 'SET_NAV_WIDTH',
listWidth: navWidth
navWidth,
})
})
}