mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
login logout redirects, session, remove out of scope code
This commit is contained in:
@ -27,10 +27,10 @@ const userNavigation = [
|
||||
{ name: "Your Profile", href: "/settings" },
|
||||
{
|
||||
name: "Sign out",
|
||||
href: "/login",
|
||||
href: "",
|
||||
click: (e: any) => {
|
||||
e.preventDefault();
|
||||
signOut();
|
||||
signOut({ callbackUrl: "/login" });
|
||||
},
|
||||
},
|
||||
];
|
||||
@ -41,7 +41,6 @@ function classNames(...classes: any) {
|
||||
|
||||
export default function Layout({ children }: any) {
|
||||
const router = useRouter();
|
||||
|
||||
navigation.forEach((element) => {
|
||||
element.current = element.href == router.route;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user