Skip to content

Commit f72c553

Browse files
committed
Dashboard: File organization changes
1 parent 0aac9a8 commit f72c553

File tree

414 files changed

+768
-779
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

414 files changed

+768
-779
lines changed

apps/dashboard/src/@/actions/getAccount.ts renamed to apps/dashboard/src/@/actions/account/getAccount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use server";
22

3-
import { getRawAccount } from "../../app/(app)/account/settings/getAccount";
3+
import { getRawAccount } from "@/api/account/get-account";
44

55
export async function getRawAccountAction() {
66
return getRawAccount();

apps/dashboard/src/@/actions/stripe-actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "server-only";
22

33
import Stripe from "stripe";
4-
import type { Team } from "@/api/team";
4+
import type { Team } from "@/api/team/get-team";
55
import { STRIPE_SECRET_KEY } from "@/constants/server-envs";
66

77
let existingStripe: Stripe | undefined;

apps/dashboard/src/@/actions/createTeam.ts renamed to apps/dashboard/src/@/actions/team/createTeam.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "server-only";
55
import { randomBytes } from "crypto";
66
import { format } from "date-fns";
77
import { getAuthToken } from "@/api/auth-token";
8-
import type { Team } from "@/api/team";
8+
import type { Team } from "@/api/team/get-team";
99
import { NEXT_PUBLIC_THIRDWEB_API_HOST } from "@/constants/public-envs";
1010

1111
export async function createTeam(options?: { name?: string; slug?: string }) {

apps/dashboard/src/@/analytics/report.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22
import posthog from "posthog-js";
33

4-
import type { Team } from "@/api/team";
4+
import type { Team } from "@/api/team/get-team";
55
import type { ProductSKU } from "../types/billing";
66

77
// ----------------------------

apps/dashboard/src/app/(app)/account/settings/getAccount.ts renamed to apps/dashboard/src/@/api/account/get-account.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { getAuthToken } from "@/api/auth-token";
22
import { NEXT_PUBLIC_THIRDWEB_API_HOST } from "@/constants/public-envs";
33
import type { Account } from "@/hooks/useApi";
4+
import { isAccountOnboardingComplete } from "@/utils/account-onboarding";
45
import { loginRedirect } from "@/utils/redirects";
5-
import { isAccountOnboardingComplete } from "../../../login/onboarding/isOnboardingRequired";
66

77
/**
88
* Just get the account object without enforcing onboarding.

0 commit comments

Comments
 (0)