This commit is contained in:
YasinShaikh123
2024-06-24 17:08:43 +05:30
3 changed files with 143 additions and 27 deletions

View File

@@ -180,7 +180,7 @@
/* On hover */
::-webkit-scrollbar-thumb:hover {
background: #e97d88;
background: #004118;
}
@keyframes text {

View File

@@ -163,7 +163,7 @@ const DashboardLayout = () => {
// onMouseOver={() => setIsDrawerOpen(true)}
// onMouseLeave={() => setIsDrawerOpen(false)}
style={{
width: isDrawerOpen || openDrawerClick ? 225 : 74,
width: isDrawerOpen || openDrawerClick ? 232 : 74,
transition: "width 0.3s ease-in-out", // Smooth transition for width change
overflow: "hidden", // Hide overflow to prevent content overflow during transition
backgroundColor: "#0041180A",
@@ -200,7 +200,7 @@ const DashboardLayout = () => {
<Box
className="ps-2 scroll-bar"
style={{ height: "80%", overflowY: "scroll", overflowX: "hidden" }}
style={{ height: "85%", overflowY: "scroll", overflowX: "hidden" }}
>
<Accordion m={0} allowToggle>
{nav.map(({ title, type, Icon, submenu, path }, index) => {
@@ -381,7 +381,7 @@ const DashboardLayout = () => {
<main
className={`h-100 ${slideFromRight ? "pe-3" : "ps-3"} `}
style={{
width: `calc(100% - ${isDrawerOpen || openDrawerClick ? 225 : 74}px)`,
width: `calc(100% - ${isDrawerOpen || openDrawerClick ? 232 : 74}px)`,
transition: "width 0.3s ease-in-out",
}}
>

View File

@@ -5,6 +5,16 @@ import { RiExchangeBoxLine } from "react-icons/ri";
import { VscSymbolClass } from "react-icons/vsc";
import { FiUsers } from "react-icons/fi";
import { MdOutlineAddChart } from "react-icons/md";
import { HiOutlineChartSquareBar } from "react-icons/hi";
import { TbListDetails } from "react-icons/tb";
import { TbTransactionDollar } from "react-icons/tb";
import { TbCalendarDollar } from "react-icons/tb";
import { TbDeviceDesktopDollar } from "react-icons/tb";
import { BiMoneyWithdraw } from "react-icons/bi";
import { GrDocumentUpdate } from "react-icons/gr";
import { MdBrowserUpdated } from "react-icons/md";
import { AiOutlineUserDelete } from "react-icons/ai";
export const nav = [
{
@@ -15,52 +25,158 @@ export const nav = [
title: "Master",
submenu: [
{
title: "Sponser",
title: "Sponser Master",
path: "/sponser",
icon:RiMoneyDollarBoxLine
},
{
title: "Exchange rate",
path: "/exchange-rate",
icon:RiExchangeBoxLine
title: "Investment Type",
path: "/investment-type",
icon: VscSymbolClass
},
{
title: "Asset classes",
title: "Exchange Rate",
path: "/view",
icon:VscSymbolClass
icon:RiExchangeBoxLine
},
],
type: "accordion",
Icon: TbBrandMedium,
},
{
title: "User",
title: "IO Management",
submenu: [
{
title: "Sponser",
path: "/loop",
icon:TbBrandMedium
title: "Create IO",
path: "/Create IO",
icon:MdOutlineAddChart
},
{
title: "Class",
path: "/class",
icon:TbBrandMedium
},
{
title: "View",
path: "/view",
icon:TbBrandMedium
title: "View IO",
path: "/View IO",
icon:HiOutlineChartSquareBar
},
],
type: "accordion",
Icon: FiUsers,
Icon: TbDeviceDesktopDollar,
},
{
title: "Single Link",
type: "single",
path: "/",
Icon: HiOutlineNewspaper,
title: "Investor Management",
submenu: [
{
title: "Investor Details",
path: "/View Investor Transactions",
icon:TbListDetails
},
{
title: "Investor Transactions",
path: "/View IO",
icon:TbTransactionDollar
},
],
type: "accordion",
Icon: TbCalendarDollar,
},
{
title: "INVESTORS REQUEST",
type: "title",
}, {
title: "Withdrawal",
submenu: [
{
title: "Pending Request",
path: "/Pending Request",
icon:RiMoneyDollarBoxLine
},
{
title: "View History",
path: "/View History",
icon:RiExchangeBoxLine
}
],
type: "accordion",
Icon: BiMoneyWithdraw,
},
{
title: "Investor Upgradation",
submenu: [
{
title: "Pending Request",
path: "/Pending Request",
icon:RiMoneyDollarBoxLine
},
{
title: "View History",
path: "/View History",
icon:RiExchangeBoxLine
}
],
type: "accordion",
Icon: MdBrowserUpdated,
},
{
title: "Account Deletion",
submenu: [
{
title: "Pending Request",
path: "/Pending Request",
icon:RiMoneyDollarBoxLine
},
{
title: "View History",
path: "/View History",
icon:RiExchangeBoxLine
}
],
type: "accordion",
Icon: AiOutlineUserDelete,
},
{
title: "MANAGE ADMIN",
type: "title",
},{
title: "Admin",
submenu: [
{
title: "Ban / Unban Investor",
path: "/Pending Request",
icon:RiMoneyDollarBoxLine
},
{
title: "Acadamy",
path: "/Acadamy",
icon:RiExchangeBoxLine
},
{
title: "Notification",
path: "/Notification",
icon:RiExchangeBoxLine
},
{
title: "Contact Details",
path: "/Contact Details",
icon:RiExchangeBoxLine
},
{
title: "Users",
path: "/Users",
icon:RiExchangeBoxLine
},
{
title: "Bank Details",
path: "/Bank Details",
icon:RiExchangeBoxLine
}
],
type: "accordion",
Icon: TbBrandMedium,
},
// {
// title: "Single Link",
// type: "single",
// path: "/logout",
// Icon: HiOutlineNewspaper,
// },
// {
// title: "SPONSER",
// type: "title",