Skip to content

Commit c5cf33e

Browse files
committed
Fix build
1 parent d9aa8ad commit c5cf33e

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

app/(dashboard)/[tenant]/projects/[projectId]/settings/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { PageLoading } from "@/components/core/loaders";
77
import PermissionsManagement from "@/components/core/permissions-management";
88
import PageSection from "@/components/core/section";
99
import PageTitle from "@/components/layout/page-title";
10-
import { isPersonalTenant } from "@/lib/utils/useOwner";
10+
import { isPersonalTenant } from "@/lib/utils/tenant";
1111
import { useTRPC } from "@/trpc/client";
1212

1313
export default function ProjectSettings() {

app/(dashboard)/[tenant]/settings/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ProfileSettings } from "@/components/settings/profile-settings";
55
import { TeamSettings } from "@/components/settings/team-settings";
66
import { WorkspaceSettings } from "@/components/settings/workspace-settings";
77
import { bytesToMegabytes } from "@/lib/blobStore";
8-
import { isPersonalTenant } from "@/lib/utils/useOwner";
8+
import { isPersonalTenant } from "@/lib/utils/tenant";
99
import { caller } from "@/trpc/server";
1010

1111
export default async function Settings({

app/(dashboard)/[tenant]/today/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Card } from "@/components/ui/card";
2727
import { toDateStringWithDay } from "@/lib/utils/date";
2828
import { displayMutationError } from "@/lib/utils/error";
2929
import { eventToHumanReadableString } from "@/lib/utils/useEvents";
30-
import { isPersonalTenant } from "@/lib/utils/useOwner";
30+
import { isPersonalTenant } from "@/lib/utils/tenant";
3131
import { useTRPC } from "@/trpc/client";
3232

3333
export default function Today() {

lib/utils/tenant.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export const PERSONAL_TENANT = "me";
2+
3+
export function isPersonalTenant(tenant: string) {
4+
return tenant === PERSONAL_TENANT;
5+
}

lib/utils/useOwner.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { redirect } from "next/navigation";
44
import { organization } from "@/drizzle/auth-schema";
55
import { auth } from "@/lib/auth";
66
import { database } from "@/lib/utils/useDatabase";
7+
import { PERSONAL_TENANT } from "@/lib/utils/tenant";
78

89
type 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-
5449
export async function getTimezone() {
5550
const cookieStore = await cookies();
5651
return (

0 commit comments

Comments
 (0)