diff --git a/web/src/components/HeaderBar.js b/web/src/components/HeaderBar.js index 6234d867..1ddf24e9 100644 --- a/web/src/components/HeaderBar.js +++ b/web/src/components/HeaderBar.js @@ -124,11 +124,11 @@ const HeaderBar = () => { return (
{ if (props.itemKey === 'home') { - styleDispatch({ type: 'SET_INNER_PADDING', payload: true }); - styleDispatch({ type: 'SET_SIDER', payload: true }); - } else { styleDispatch({ type: 'SET_INNER_PADDING', payload: false }); styleDispatch({ type: 'SET_SIDER', payload: false }); + } else { + styleDispatch({ type: 'SET_INNER_PADDING', payload: true }); + styleDispatch({ type: 'SET_SIDER', payload: true }); } }}> { { styleState.showSider ?