MSP-3125 fix style
This commit is contained in:
1 parent
654490c748
commit
602f703f5d
29 files changed
+151
-229
No files matched your search
@@ -3,4 +3,4 @@
|
||||
border: none;
|
||||
display: flex;
|
||||
justify-content: end
|
||||
}
|
||||
}
|
||||
@@ -1,22 +1,22 @@
|
||||
import {useContext} from "react";
|
||||
import {Segmented, theme} from "antd";
|
||||
import {Context} from "../../store";
|
||||
import {darkTheme, lightTheme} from "../../constants/theme.ts";
|
||||
import {useContext} from 'react';
|
||||
import {Segmented, theme} from 'antd';
|
||||
import {Context} from '../../store';
|
||||
import {darkTheme, lightTheme} from '../../constants/theme.ts';
|
||||
import './header.scss'
|
||||
|
||||
const options = [
|
||||
{label: 'Light', value: 'light' },
|
||||
{label: 'Dark', value: 'dark'},
|
||||
{label: "Light", value: "light"},
|
||||
{label: "Dark", value: "dark"},
|
||||
];
|
||||
|
||||
function Header() {
|
||||
const Header = () => {
|
||||
const {setTheme} = useContext(Context)
|
||||
const { useToken } = theme;
|
||||
const { token } = useToken();
|
||||
const {useToken} = theme;
|
||||
const {token} = useToken();
|
||||
|
||||
return <header className='header' style={{
|
||||
backgroundColor: token.colorBgLayout
|
||||
}}><Segmented onChange={(v) => setTheme(v === 'light' ? lightTheme : darkTheme)} options={options}/></header>;
|
||||
return <header className="header" style={{backgroundColor: token.colorBgLayout}}>
|
||||
<Segmented onChange={(v) => setTheme(v === "light" ? lightTheme : darkTheme)} options={options}/>
|
||||
</header>;
|
||||
}
|
||||
|
||||
export default Header;
|
||||
export default Header;
|
||||
Reference in new issue
Block a user