-
- {React.cloneElement(item.icon, { color: `var(${getColor()})` })}
+
+ {item.icon && React.cloneElement(item.icon, { color: `var(${getColor()})` })}
{item.text}
+ {item.dropdown &&
+ React.cloneElement(, {
+ color: `var(${getColor()})`,
+ })}
+ {item.dropdown && (
+
+ {item.dropdown.items.map((subItem, index) => (
+
+ ))}
+
+ )}
{item.hasSeparator &&
}
);
diff --git a/src/front/Components/DesignSystem/Menu/index.tsx b/src/front/Components/DesignSystem/Menu/index.tsx
index f0dca424..891b978c 100644
--- a/src/front/Components/DesignSystem/Menu/index.tsx
+++ b/src/front/Components/DesignSystem/Menu/index.tsx
@@ -1,35 +1,10 @@
-import { IAppRule } from "@Front/Api/Entities/rule";
-import { ETypoColor } from "@Front/Components/DesignSystem/Typography";
import Rules, { RulesMode } from "@Front/Components/Elements/Rules";
import useHoverable from "@Front/Hooks/useHoverable";
import useOpenable from "@Front/Hooks/useOpenable";
import React, { useEffect, useRef } from "react";
import classes from "./classes.module.scss";
-import MenuItem from "./MenuItem";
-
-type IItemBase = {
- icon: JSX.Element;
- text: string;
- hasSeparator?: boolean;
- color?: ETypoColor;
-};
-
-type IItemWithLink = IItemBase & {
- link: string;
- rules?: IAppRule[];
- routesActive?: string[];
- onClick?: never;
-};
-
-type IItemWithOnClick = IItemBase & {
- onClick: () => void;
- link?: never;
- rules?: never;
- routesActive?: never;
-};
-
-export type IItem = IItemWithLink | IItemWithOnClick;
+import MenuItem, { IItem } from "./MenuItem";
type IProps = {
children: React.ReactNode;
@@ -79,7 +54,7 @@ export default function Menu(props: IProps) {
{items.map((item, index) => {
return (
-
+
);
})}
diff --git a/src/front/Components/LayoutTemplates/DefaultCollaboratorDashboard/classes.module.scss b/src/front/Components/LayoutTemplates/DefaultCollaboratorDashboard/classes.module.scss
index c4e19f2a..f54563dd 100644
--- a/src/front/Components/LayoutTemplates/DefaultCollaboratorDashboard/classes.module.scss
+++ b/src/front/Components/LayoutTemplates/DefaultCollaboratorDashboard/classes.module.scss
@@ -14,7 +14,7 @@
.content {
display: flex;
overflow: hidden;
- height: calc(100vh - 83px);
+ height: calc(100vh - var(--header-height));
.overlay {
position: absolute;
@@ -66,7 +66,7 @@
justify-content: center;
min-width: 56px;
max-width: 56px;
- height: calc(100vh - 83px);
+ height: calc(100vh - var(--header-height));
border-right: 1px var(--color-neutral-200) solid;
@media (min-width: $screen-m) {
diff --git a/src/front/Components/LayoutTemplates/DefaultDeedTypeDashboard/classes.module.scss b/src/front/Components/LayoutTemplates/DefaultDeedTypeDashboard/classes.module.scss
index c4e19f2a..f54563dd 100644
--- a/src/front/Components/LayoutTemplates/DefaultDeedTypeDashboard/classes.module.scss
+++ b/src/front/Components/LayoutTemplates/DefaultDeedTypeDashboard/classes.module.scss
@@ -14,7 +14,7 @@
.content {
display: flex;
overflow: hidden;
- height: calc(100vh - 83px);
+ height: calc(100vh - var(--header-height));
.overlay {
position: absolute;
@@ -66,7 +66,7 @@
justify-content: center;
min-width: 56px;
max-width: 56px;
- height: calc(100vh - 83px);
+ height: calc(100vh - var(--header-height));
border-right: 1px var(--color-neutral-200) solid;
@media (min-width: $screen-m) {
diff --git a/src/front/Components/LayoutTemplates/DefaultDocumentTypesDashboard/classes.module.scss b/src/front/Components/LayoutTemplates/DefaultDocumentTypesDashboard/classes.module.scss
index c4e19f2a..f54563dd 100644
--- a/src/front/Components/LayoutTemplates/DefaultDocumentTypesDashboard/classes.module.scss
+++ b/src/front/Components/LayoutTemplates/DefaultDocumentTypesDashboard/classes.module.scss
@@ -14,7 +14,7 @@
.content {
display: flex;
overflow: hidden;
- height: calc(100vh - 83px);
+ height: calc(100vh - var(--header-height));
.overlay {
position: absolute;
@@ -66,7 +66,7 @@
justify-content: center;
min-width: 56px;
max-width: 56px;
- height: calc(100vh - 83px);
+ height: calc(100vh - var(--header-height));
border-right: 1px var(--color-neutral-200) solid;
@media (min-width: $screen-m) {
diff --git a/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/classes.module.scss b/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/classes.module.scss
index e99cca13..8d431201 100644
--- a/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/classes.module.scss
+++ b/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/classes.module.scss
@@ -5,7 +5,7 @@
.content {
display: flex;
.sides {
- min-height: calc(100vh - 83px);
+ min-height: calc(100vh - var(--header-height));
width: 50%;
@media (max-width: $screen-m) {
width: 100%;
@@ -31,7 +31,7 @@
width: 50vw;
top: 83px;
right: 0;
- height: calc(100vh - 83px);
+ height: calc(100vh - var(--header-height));
@media (max-width: $screen-m) {
display: none;
}
diff --git a/src/front/Components/LayoutTemplates/DefaultLayout.tsx b/src/front/Components/LayoutTemplates/DefaultLayout.tsx
index 322f5bd3..148fedf7 100644
--- a/src/front/Components/LayoutTemplates/DefaultLayout.tsx
+++ b/src/front/Components/LayoutTemplates/DefaultLayout.tsx
@@ -8,7 +8,7 @@ export const DefaultLayout = ({ children }: DefaultLayoutProps) => {
<>
LEcoffre
- {/*
*/}
+ {/*
*/}
{children}
diff --git a/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/classes.module.scss b/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/classes.module.scss
index 69cef63d..4a8599a1 100644
--- a/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/classes.module.scss
+++ b/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/classes.module.scss
@@ -15,7 +15,7 @@
.content {
display: flex;
overflow: hidden;
- height: calc(100vh - 83px);
+ height: calc(100vh - var(--header-height));
.overlay {
position: absolute;
@@ -67,7 +67,7 @@
justify-content: center;
min-width: 56px;
max-width: 56px;
- height: calc(100vh - 83px);
+ height: calc(100vh - var(--header-height));
border-right: 1px var(--color-neutral-200) solid;
@media (min-width: $screen-m) {
diff --git a/src/front/Components/LayoutTemplates/DefaultOfficeDashboard/classes.module.scss b/src/front/Components/LayoutTemplates/DefaultOfficeDashboard/classes.module.scss
index c4e19f2a..f54563dd 100644
--- a/src/front/Components/LayoutTemplates/DefaultOfficeDashboard/classes.module.scss
+++ b/src/front/Components/LayoutTemplates/DefaultOfficeDashboard/classes.module.scss
@@ -14,7 +14,7 @@
.content {
display: flex;
overflow: hidden;
- height: calc(100vh - 83px);
+ height: calc(100vh - var(--header-height));
.overlay {
position: absolute;
@@ -66,7 +66,7 @@
justify-content: center;
min-width: 56px;
max-width: 56px;
- height: calc(100vh - 83px);
+ height: calc(100vh - var(--header-height));
border-right: 1px var(--color-neutral-200) solid;
@media (min-width: $screen-m) {
diff --git a/src/front/Components/LayoutTemplates/DefaultRoleDashboard/classes.module.scss b/src/front/Components/LayoutTemplates/DefaultRoleDashboard/classes.module.scss
index c4e19f2a..f54563dd 100644
--- a/src/front/Components/LayoutTemplates/DefaultRoleDashboard/classes.module.scss
+++ b/src/front/Components/LayoutTemplates/DefaultRoleDashboard/classes.module.scss
@@ -14,7 +14,7 @@
.content {
display: flex;
overflow: hidden;
- height: calc(100vh - 83px);
+ height: calc(100vh - var(--header-height));
.overlay {
position: absolute;
@@ -66,7 +66,7 @@
justify-content: center;
min-width: 56px;
max-width: 56px;
- height: calc(100vh - 83px);
+ height: calc(100vh - var(--header-height));
border-right: 1px var(--color-neutral-200) solid;
@media (min-width: $screen-m) {
diff --git a/src/front/Components/LayoutTemplates/DefaultUserDashboard/classes.module.scss b/src/front/Components/LayoutTemplates/DefaultUserDashboard/classes.module.scss
index f4e58c6d..059853fe 100644
--- a/src/front/Components/LayoutTemplates/DefaultUserDashboard/classes.module.scss
+++ b/src/front/Components/LayoutTemplates/DefaultUserDashboard/classes.module.scss
@@ -14,7 +14,7 @@
.content {
display: flex;
overflow: hidden;
- height: calc(100vh - 83px);
+ height: calc(100vh - var(--header-height));
.overlay {
position: absolute;
@@ -66,7 +66,7 @@
justify-content: center;
min-width: 56px;
max-width: 56px;
- height: calc(100vh - 83px);
+ height: calc(100vh - var(--header-height));
border-right: 1px var(--color-neutral-200 solid);
@media (min-width: $screen-m) {
diff --git a/src/front/Components/Layouts/Folder/FolderInformation/ClientView/index.tsx b/src/front/Components/Layouts/Folder/FolderInformation/ClientView/index.tsx
index 264db94d..3a02bd33 100644
--- a/src/front/Components/Layouts/Folder/FolderInformation/ClientView/index.tsx
+++ b/src/front/Components/Layouts/Folder/FolderInformation/ClientView/index.tsx
@@ -28,10 +28,17 @@ export default function ClientView(props: IProps) {
const customers: ICustomer[] = useMemo(
() =>
- folder?.customers?.map((customer) => ({
- id: customer.uid ?? "",
- ...customer,
- })) ?? [],
+ folder?.customers
+ ?.map((customer) => ({
+ id: customer.uid ?? "",
+ ...customer,
+ }))
+ .sort((a, b) => {
+ return a.documents &&
+ a.documents.filter((document) => document.document_status === EDocumentStatus.DEPOSITED).length > 0
+ ? -1
+ : 1;
+ }) ?? [],
[folder],
);
diff --git a/src/front/Components/Layouts/Folder/FolderInformation/InformationSection/index.tsx b/src/front/Components/Layouts/Folder/FolderInformation/InformationSection/index.tsx
index ef264e44..c7c6722b 100644
--- a/src/front/Components/Layouts/Folder/FolderInformation/InformationSection/index.tsx
+++ b/src/front/Components/Layouts/Folder/FolderInformation/InformationSection/index.tsx
@@ -1,6 +1,5 @@
import CircleProgress from "@Front/Components/DesignSystem/CircleProgress";
import IconButton, { EIconButtonVariant } from "@Front/Components/DesignSystem/IconButton";
-import Menu, { IItem } from "@Front/Components/DesignSystem/Menu";
import Tag, { ETagColor } from "@Front/Components/DesignSystem/Tag";
import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Typography";
import Module from "@Front/Config/Module";
@@ -10,6 +9,8 @@ import { useCallback } from "react";
import { AnchorStatus } from "..";
import classes from "./classes.module.scss";
+import { IItem } from "@Front/Components/DesignSystem/Menu/MenuItem";
+import Menu from "@Front/Components/DesignSystem/Menu";
type IProps = {
folder: OfficeFolder | null;
diff --git a/src/front/index.scss b/src/front/index.scss
index 3b8e1f7e..5b066837 100644
--- a/src/front/index.scss
+++ b/src/front/index.scss
@@ -46,13 +46,6 @@ a,
a:visited {
color: initial;
text-decoration: none !important;
- opacity: 1;
- transition: opacity 0.15s ease-in-out;
- will-change: opacity;
-}
-
-a:hover {
- opacity: 0.9;
}
.react-select__input-container {