diff --git a/src/components/SettingDrawer/index.js b/src/components/SettingDrawer/index.js index cdb28aa3c8f29fca78d2bf9dc296d711794ca3be..1a9be4f4f8a5cfece8dddbc315001a17749f24f2 100644 --- a/src/components/SettingDrawer/index.js +++ b/src/components/SettingDrawer/index.js @@ -1,4 +1,4 @@ -import React, { PureComponent } from 'react'; +import React, { Component } from 'react'; import { Select, message, Drawer, List, Switch, Divider, Icon, Button, Alert, Tooltip } from 'antd'; import { formatMessage } from 'umi/locale'; import { CopyToClipboard } from 'react-copy-to-clipboard'; @@ -23,7 +23,7 @@ const Body = ({ children, title, style }) => ( ); @connect(({ setting }) => ({ setting })) -class SettingDrawer extends PureComponent { +class SettingDrawer extends Component { state = { collapse: false, }; @@ -207,17 +207,22 @@ class SettingDrawer extends PureComponent { - this.changeSetting('colorWeak', checked)} - />, + this.changeSetting('colorWeak', checked)} + /> + ), + }, ]} - > - {formatMessage({ id: 'app.setting.weakmode' })} - + />