diff --git a/src/front/Assets/images/warning.png b/src/front/Assets/images/warning.png new file mode 100644 index 00000000..ca122226 Binary files /dev/null and b/src/front/Assets/images/warning.png differ diff --git a/src/front/Components/Layouts/Users/UserInformations/classes.module.scss b/src/front/Components/Layouts/Users/UserInformations/classes.module.scss index 3b68e9c8..2bac3ec5 100644 --- a/src/front/Components/Layouts/Users/UserInformations/classes.module.scss +++ b/src/front/Components/Layouts/Users/UserInformations/classes.module.scss @@ -1,6 +1,18 @@ @import "@Themes/constants.scss"; .root { + .header { + display: flex; + align-items: flex-end; + gap: 24px; + + @media (max-width: $screen-s) { + flex-direction: column; + align-items: flex-start; + gap: 16px; + } + } + .user-infos { background-color: var(--grey-soft); display: flex; @@ -34,6 +46,11 @@ display: flex; gap: 32px; + + @media (max-width: $screen-m) { + flex-direction: column; + } + .part { flex: 1; .first-line { @@ -45,6 +62,16 @@ display: flex; gap: 16px; flex-direction: column; + + .votes-block { + align-items: center; + display: flex; + gap: 16px; + background-color: var(--orange-soft); + border: 1px solid #e7e7e7; + border-radius: 5px; + padding: 16px; + } } } .third-line { diff --git a/src/front/Components/Layouts/Users/UserInformations/index.tsx b/src/front/Components/Layouts/Users/UserInformations/index.tsx index e029c46c..13e883f4 100644 --- a/src/front/Components/Layouts/Users/UserInformations/index.tsx +++ b/src/front/Components/Layouts/Users/UserInformations/index.tsx @@ -8,6 +8,8 @@ import { useRouter } from "next/router"; import { useEffect, useState } from "react"; import classes from "./classes.module.scss"; import OfficeRoles from "@Front/Api/LeCoffreApi/Admin/OfficeRoles/OfficeRoles"; +import WarningIcon from "@Assets/images/warning.png"; +import Image from "next/image"; type IProps = {}; export default function UserInformations(props: IProps) { @@ -24,6 +26,7 @@ export default function UserInformations(props: IProps) { q: { contact: true, office_role: true, + office_membership: true, }, }); if (!user) return; @@ -38,10 +41,13 @@ export default function UserInformations(props: IProps) { }, [userUid]); return ( - +
-
+
{userSelected?.contact?.first_name + " " + userSelected?.contact?.last_name} + + Office {userSelected?.office_membership?.name.toLocaleUpperCase()} +
@@ -108,6 +114,22 @@ export default function UserInformations(props: IProps) { name="superadmin" toolTip="tooltip" /> +
+
+ warning +
+
+
+ 1/3 +
+
+ + Vous avez voté pour attribuer le titre de Super Admin. Il manque 2 votes pour que le + collaborateur se voit attribuer le titre. + +
+
+