File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
projects/[projectId]/settings Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { PageLoading } from "@/components/core/loaders";
77import PermissionsManagement from "@/components/core/permissions-management" ;
88import PageSection from "@/components/core/section" ;
99import PageTitle from "@/components/layout/page-title" ;
10- import { isPersonalTenant } from "@/lib/utils/useOwner " ;
10+ import { isPersonalTenant } from "@/lib/utils/tenant " ;
1111import { useTRPC } from "@/trpc/client" ;
1212
1313export default function ProjectSettings ( ) {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { ProfileSettings } from "@/components/settings/profile-settings";
55import { TeamSettings } from "@/components/settings/team-settings" ;
66import { WorkspaceSettings } from "@/components/settings/workspace-settings" ;
77import { bytesToMegabytes } from "@/lib/blobStore" ;
8- import { isPersonalTenant } from "@/lib/utils/useOwner " ;
8+ import { isPersonalTenant } from "@/lib/utils/tenant " ;
99import { caller } from "@/trpc/server" ;
1010
1111export default async function Settings ( {
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import { Card } from "@/components/ui/card";
2727import { toDateStringWithDay } from "@/lib/utils/date" ;
2828import { displayMutationError } from "@/lib/utils/error" ;
2929import { eventToHumanReadableString } from "@/lib/utils/useEvents" ;
30- import { isPersonalTenant } from "@/lib/utils/useOwner " ;
30+ import { isPersonalTenant } from "@/lib/utils/tenant " ;
3131import { useTRPC } from "@/trpc/client" ;
3232
3333export default function Today ( ) {
Original file line number Diff line number Diff line change 1+ export const PERSONAL_TENANT = "me" ;
2+
3+ export function isPersonalTenant ( tenant : string ) {
4+ return tenant === PERSONAL_TENANT ;
5+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { redirect } from "next/navigation";
44import { organization } from "@/drizzle/auth-schema" ;
55import { auth } from "@/lib/auth" ;
66import { database } from "@/lib/utils/useDatabase" ;
7+ import { PERSONAL_TENANT } from "@/lib/utils/tenant" ;
78
89type Result = {
910 userId : string ;
@@ -45,12 +46,6 @@ export async function getOwner(): Promise<Result> {
4546 } ;
4647}
4748
48- export const PERSONAL_TENANT = "me" ;
49-
50- export function isPersonalTenant ( tenant : string ) {
51- return tenant === PERSONAL_TENANT ;
52- }
53-
5449export async function getTimezone ( ) {
5550 const cookieStore = await cookies ( ) ;
5651 return (
You can’t perform that action at this time.
0 commit comments