feat: deals table

This commit is contained in:
2024-08-20 19:58:00 +03:00
parent 191f8ee972
commit a96b99eb01
9 changed files with 290 additions and 159 deletions

View File

@@ -10,7 +10,6 @@ import {
IconMan,
IconMoon,
IconSun,
IconTable,
} from '@tabler/icons-react';
import classes from './Navbar.module.css';
import {useAppDispatch} from "../../redux/store.ts";
@@ -48,11 +47,11 @@ const mockdata = [
label: 'Сделки',
href: '/leads'
},
{
icon: IconTable,
label: 'Таблица сделок',
href: '/deals'
},
// {
// icon: IconTable,
// label: 'Таблица сделок',
// href: '/deals'
// },
{
icon: IconMan,
label: 'Клиенты',
@@ -104,6 +103,7 @@ export function Navbar() {
p={rem(5)}
>
<Image
flex={1}
// style={{filter: "drop-shadow(0 0 30px #fff)"}}
src={colorScheme == "dark" ? "/icons/logo-light.png" : "/icons/logo.png"}
/>

View File

@@ -19,5 +19,9 @@
.container-full-height {
min-height: calc(100vh - (rem(20) * 2));
}
.container-full-height-fixed {
height: calc(100vh - (rem(20) * 2));
}

View File

@@ -7,11 +7,19 @@ type Props = {
fluid?: boolean;
style?: CSSProperties;
fullHeight?: boolean;
fullHeightFixed?: boolean;
}
export const PageBlock: FC<Props> = ({children, style, fluid = true, fullHeight = false}) => {
export const PageBlock: FC<Props> = ({children, style, fluid = true, fullHeight = false, fullHeightFixed = false}) => {
return (
<div style={style}
className={classNames(styles['container'], fluid && styles['container-fluid'], fullHeight && styles['container-full-height'])}>
className={
classNames(
styles['container'],
fluid && styles['container-fluid'],
fullHeight && styles['container-full-height'],
fullHeightFixed && styles['container-full-height-fixed']
)
}>
{children}
</div>
)