| | |
| | | import React from 'react'; |
| | | import { Footer, Question, SelectLang, AvatarDropdown, AvatarName, Brightness, LayoutSwitch } from '@/components'; |
| | | import { Footer, Question, SelectLang, AvatarDropdown, AvatarName, Brightness, LayoutSwitch, FullScreen } from '@/components'; |
| | | import { LinkOutlined } from '@ant-design/icons'; |
| | | import { SettingDrawer } from '@ant-design/pro-components'; |
| | | import { history, Link } from '@umijs/max'; |
| | |
| | | return JSON.parse(localStorage.getItem('layoutMode')) || true; |
| | | }); |
| | | |
| | | const [fullScreen, setFullScreen] = React.useState(false); |
| | | |
| | | React.useEffect(() => { |
| | | localStorage.setItem('darkMode', JSON.stringify(darkMode)); |
| | |
| | | |
| | | return { |
| | | actionsRender: () => [ |
| | | <FullScreen fullScreen={fullScreen} setFullScreen={setFullScreen} />, |
| | | <LayoutSwitch layoutMode={layoutMode} setLayoutMode={setLayoutMode} />, |
| | | <Brightness darkMode={darkMode} setDarkMode={setDarkMode} />, |
| | | // <Question key="doc" />, |