MSP-3155 delete Header

This commit is contained in:
Anastasiia committed 2024-04-09 14:24:04 +03:00
1 parent 6e50a8488e
commit 8c8fc97e40
2 files changed
-36

No files matched your search

-6
View File
@@ -1,6 +0,0 @@
.header {
width: 100%;
border: none;
display: flex;
justify-content: end;
}
-30
View File
@@ -1,30 +0,0 @@
import { Segmented, theme } from 'antd'
import { useContext } from 'react'
import { darkTheme, lightTheme } from '@constants/theme.ts'
import { Context } from '@stores/index.tsx'
import './header.scss'
const options = [
{ label: 'Light', value: 'light' },
{ label: 'Dark', value: 'dark' }
]
const Header = () => {
const { setTheme } = useContext(Context)
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>
)
}
export default Header