Commit 07e3f632 authored by afc163's avatar afc163

Fix typo, silderTheme => navTheme

parent 1f63d13d
......@@ -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 (
<Drawer
visible={collapse}
......@@ -157,8 +157,8 @@ class SettingDrawer extends PureComponent {
url: 'https://gw.alipayobjects.com/zos/rmsportal/jpRkZQMyYRryryPNtyIC.svg',
},
]}
value={silderTheme}
onChange={value => this.changeSetting('silderTheme', value)}
value={navTheme}
onChange={value => this.changeSetting('navTheme', value)}
/>
</Body>
......
module.exports = {
collapse: false,
silderTheme: 'dark',
navTheme: 'dark',
primaryColor: '#1890FF',
layout: 'sidemenu',
grid: 'Fluid',
......
......@@ -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 {
<SiderMenu
logo={logo}
Authorized={Authorized}
theme={silderTheme}
theme={navTheme}
onCollapse={this.handleMenuCollapse}
menuData={menuData}
{...this.props}
......
......@@ -106,7 +106,7 @@ class HeaderView extends PureComponent {
render() {
const { isMobile, handleMenuCollapse, setting } = this.props;
const { silderTheme, layout, fixedHeader } = setting;
const { navTheme, layout, fixedHeader } = setting;
const { visible } = this.state;
const isTop = layout === 'topmenu';
const HeaderDom = visible ? (
......@@ -116,7 +116,7 @@ class HeaderView extends PureComponent {
>
{isTop && !isMobile ? (
<TopNavHeader
theme={silderTheme}
theme={navTheme}
mode="horizontal"
Authorized={Authorized}
onCollapse={handleMenuCollapse}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment