store last visited org in cookie

This commit is contained in:
miloschwartz
2025-06-24 14:54:07 -04:00
parent 34180ca454
commit 9bb4d8b2a3
6 changed files with 14229 additions and 14065 deletions

View File

@@ -8,6 +8,7 @@ import { GetOrgUserResponse } from "@server/routers/user";
import { AxiosResponse } from "axios";
import { redirect } from "next/navigation";
import { cache } from "react";
import SetLastOrgCookie from "@app/components/SetLastOrgCookie";
export default async function OrgLayout(props: {
children: React.ReactNode;
@@ -52,6 +53,7 @@ export default async function OrgLayout(props: {
return (
<>
{props.children}
<SetLastOrgCookie orgId={orgId} />
</>
);
}