diff --git a/src/Layouts/DefaultLayout.tsx b/src/Layouts/DefaultLayout.tsx index 5750ec9..5dc8b49 100644 --- a/src/Layouts/DefaultLayout.tsx +++ b/src/Layouts/DefaultLayout.tsx @@ -27,7 +27,7 @@ const DefaultLayout: FC<{ children: React.ReactNode }> = ({ children }) => { {title} : - navigate(path)} gap={0} style={{ cursor: 'pointer', borderRadius: '8px', padding: '5px', width: '100%', display: 'flex', alignItems: 'center', border: '1px solid #ffffff', backgroundColor:'#fff',color:'#000', fontSize: '14px' }}> {title} + navigate(path)} gap={0} style={{ cursor: 'pointer', borderRadius: '8px', padding: '5px', width: '100%', display: 'flex', alignItems: 'center', border: '1px solid #ffffff', backgroundColor:'#fff',color:'#000', fontSize: '14px', fontWeight:'normal' }}> {title} {children?.map(({ title, path, Icon }, index) => navigate(path)} style={{ marginTop: 6, cursor: 'pointer', borderRadius: '8px', padding: '6px', width: '100%', display: 'flex', alignItems: 'center', gap: 6, border: '1px solid #ffffff', backgroundColor:'#fff',color:'#000' }} > {title})} )} diff --git a/src/Routes/Nav.ts b/src/Routes/Nav.ts index f225b1a..8bfe22e 100644 --- a/src/Routes/Nav.ts +++ b/src/Routes/Nav.ts @@ -1,6 +1,7 @@ import { LiaUsersSolid } from "react-icons/lia"; import { LuBellDot } from "react-icons/lu"; import { MdOutlineSupportAgent, MdPostAdd } from "react-icons/md"; +import { TiUserOutline } from "react-icons/ti"; import { GoDotFill } from "react-icons/go"; import { TbFileSettings, TbLayoutDashboard, TbReport, TbUsers, TbUsersGroup } from "react-icons/tb"; @@ -16,9 +17,21 @@ export const nav = [ }, { title: "Manage Users", - path: "/manage-user", - Icon: TbUsers, - type:'single' + path: "/register-user", + Icon: TiUserOutline, + type:'multiple', + children: [ + { + title: "Register Users", + path: "/register-user", + Icon: GoDotFill, + }, + { + title: "Deactivated Accounts", + path: "/deactivate-accounts", + Icon: GoDotFill, + }, + ], }, { title: "Manage Groups",