From 07e3f6329ae793e6965bd716aa51f9cc70a4d743 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 1 Sep 2018 17:43:41 +0800 Subject: [PATCH] Fix typo, silderTheme => navTheme --- src/components/SettingDrawer/index.js | 6 +++--- src/defaultSetting.js | 2 +- src/layouts/BasicLayout.js | 4 ++-- src/layouts/Header.js | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/SettingDrawer/index.js b/src/components/SettingDrawer/index.js index ea3113e0..5d5eae07 100644 --- a/src/components/SettingDrawer/index.js +++ b/src/components/SettingDrawer/index.js @@ -111,7 +111,7 @@ class SettingDrawer extends PureComponent { render() { const { setting } = this.props; - const { collapse, silderTheme, primaryColor, layout, colorWeak } = setting; + const { collapse, navTheme, primaryColor, layout, colorWeak } = setting; return ( this.changeSetting('silderTheme', value)} + value={navTheme} + onChange={value => this.changeSetting('navTheme', value)} /> diff --git a/src/defaultSetting.js b/src/defaultSetting.js index 8873d6a3..8d51b6bb 100644 --- a/src/defaultSetting.js +++ b/src/defaultSetting.js @@ -1,6 +1,6 @@ module.exports = { collapse: false, - silderTheme: 'dark', + navTheme: 'dark', primaryColor: '#1890FF', layout: 'sidemenu', grid: 'Fluid', diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index 0e575367..288f0424 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -217,7 +217,7 @@ class BasicLayout extends React.PureComponent { render() { const { - silderTheme, + navTheme, layout: PropsLayout, children, location: { pathname }, @@ -231,7 +231,7 @@ class BasicLayout extends React.PureComponent { {isTop && !isMobile ? (