feat: add new nav item for user sessions
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
import { useAuth } from "@/store/auth";
|
import { useAuth } from "@/store/auth";
|
||||||
import { Blocks, Home, User, Users } from "lucide-react";
|
import { Blocks, Home, User, UserLock, Users } from "lucide-react";
|
||||||
import { useCallback, type ReactNode } from "react";
|
import { useCallback, type ReactNode } from "react";
|
||||||
import { useLocation } from "react-router";
|
import { useLocation } from "react-router";
|
||||||
|
|
||||||
@ -81,6 +81,12 @@ export const useBarItems = (): [Item[], (item: Item) => boolean] => {
|
|||||||
tab: "admin.users",
|
tab: "admin.users",
|
||||||
pathname: "/admin/users",
|
pathname: "/admin/users",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
icon: <UserLock />,
|
||||||
|
title: "User Sessions",
|
||||||
|
tab: "admin.user-sessions",
|
||||||
|
pathname: "/admin/user-sessions",
|
||||||
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user