mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 09:58:12 +00:00
add 'My signature' menu item to user menu
This commit is contained in:
@@ -2,6 +2,7 @@ import { type ReactNode, useEffect, useRef, useState } from "react";
|
|||||||
import {
|
import {
|
||||||
Bell,
|
Bell,
|
||||||
ChevronDown,
|
ChevronDown,
|
||||||
|
FileSignature,
|
||||||
Languages,
|
Languages,
|
||||||
LogOut,
|
LogOut,
|
||||||
MessageSquare,
|
MessageSquare,
|
||||||
@@ -209,6 +210,15 @@ const FreightDashboardHeader = ({
|
|||||||
>
|
>
|
||||||
Profile
|
Profile
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
|
<Menu.Item
|
||||||
|
leftSection={<FileSignature size={15} />}
|
||||||
|
onClick={() => {
|
||||||
|
setIsUserMenuOpen(false);
|
||||||
|
navigate("/dashboard/profile#signature");
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
My signature
|
||||||
|
</Menu.Item>
|
||||||
<Menu.Item
|
<Menu.Item
|
||||||
leftSection={<LogOut size={15} />}
|
leftSection={<LogOut size={15} />}
|
||||||
color="red"
|
color="red"
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ import { MySignatureCard } from "@/components/profile/MySignatureCard";
|
|||||||
export default function MyProfilePage() {
|
export default function MyProfilePage() {
|
||||||
return (
|
return (
|
||||||
<div className="mx-auto w-full max-w-2xl space-y-6 p-4">
|
<div className="mx-auto w-full max-w-2xl space-y-6 p-4">
|
||||||
<MySignatureCard />
|
<div id="signature">
|
||||||
|
<MySignatureCard />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user