2024-04-27 16:21:14: merge [main:aa6853211bb46e321bc26b3b8132b18c03592910];

This commit is contained in:
txix committed 2024-04-27 16:21:14 +03:00
1 parent a31c44eb7b
commit a6f4c85231
38 files changed
+1966 -60

No files matched your search

@@ -1,5 +1,5 @@
.access-list-tree{
overflow-y: scroll;
height: calc(100vh - 130px);
height: calc(100vh - 250px);
}
+9
View File
@@ -0,0 +1,9 @@
.header {
display: flex;
align-items: center;
padding: 0 28px;
width: 100%;
height: 65px;
justify-content: space-between;
box-sizing: border-box;
}
+3
View File
@@ -0,0 +1,3 @@
export interface HeaderPropsType {
title: string
}
+45
View File
@@ -0,0 +1,45 @@
import { HomeOutlined } from '@ant-design/icons'
import { Breadcrumb } from 'antd'
import { HeaderPropsType } from '@widgets/Header/header.type.ts'
import { useAppSelector } from '@hooks/redux.ts'
import './header.scss'
const Header = ({ title }: HeaderPropsType) => {
const {
ui: { name, primaryColor }
} = useAppSelector((state) => state.UIReducer)
return (
<section
className="header"
style={{
backgroundColor: primaryColor
}}
>
<div>
<Breadcrumb
items={[
{
href: '/',
title: (
<>
<HomeOutlined />
<span>Главная</span>
</>
)
},
{
title: <span>{title}</span>
}
]}
/>
</div>
<span>{name}</span>
</section>
)
}
export default Header
@@ -8,6 +8,6 @@
border: 1px dashed $grey;
overflow-y: scroll;
height: calc(100vh - 130px);
height: calc(100vh - 160px);
}