Skip to content

Commit c62c388

Browse files
committed
Dashboard: Move account-abstraction page to /account-abstraction route
1 parent 36a9a48 commit c62c388

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FooterLinksSection } from "../../components/footer/FooterLinksSection";
1+
import { FooterLinksSection } from "../components/footer/FooterLinksSection";
22

33
export function AAFooter() {
44
return (
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function AccountAbstractionLayout(props: {
1717
children: React.ReactNode;
1818
hasSmartWalletsWithoutBilling: boolean;
1919
}) {
20-
const smartWalletsLayoutSlug = `/team/${props.teamSlug}/${props.projectSlug}/connect/account-abstraction`;
20+
const smartWalletsLayoutSlug = `/team/${props.teamSlug}/${props.projectSlug}/account-abstraction`;
2121

2222
return (
2323
<div className="flex grow flex-col">
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import { UnderlineLink } from "@/components/ui/UnderlineLink";
66
import { Button } from "@/components/ui/button";
77
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
88
import { serverThirdwebClient } from "@/constants/thirdweb-client.server";
9+
import { getSortedDeployedContracts } from "@app/account/contracts/_components/getSortedDeployedContracts";
10+
import { getAuthToken } from "@app/api/lib/getAuthToken";
11+
import { loginRedirect } from "@app/login/loginRedirect";
912
import { DefaultFactoriesSection } from "components/smart-wallets/AccountFactories";
1013
import { FactoryContracts } from "components/smart-wallets/AccountFactories/factory-contracts";
1114
import { PlusIcon } from "lucide-react";
@@ -14,9 +17,6 @@ import { redirect } from "next/navigation";
1417
import { Suspense } from "react";
1518
import { type ThirdwebClient, defineChain, getContract } from "thirdweb";
1619
import { getCompilerMetadata } from "thirdweb/contract";
17-
import { getSortedDeployedContracts } from "../../../../../../../account/contracts/_components/getSortedDeployedContracts";
18-
import { getAuthToken } from "../../../../../../../api/lib/getAuthToken";
19-
import { loginRedirect } from "../../../../../../../login/loginRedirect";
2020

2121
export default async function Page(props: {
2222
params: Promise<{ team_slug: string; project_slug: string }>;
@@ -31,7 +31,7 @@ export default async function Page(props: {
3131

3232
if (!authToken) {
3333
loginRedirect(
34-
`/team/${params.team_slug}/${params.project_slug}/connect/account-abstraction/factories`,
34+
`/team/${params.team_slug}/${params.project_slug}/account-abstraction/factories`,
3535
);
3636
}
3737

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { getUserOpUsage } from "@/api/analytics";
22
import { getProject } from "@/api/projects";
33
import { getTeamBySlug } from "@/api/team";
44
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
5+
import { getAuthToken } from "@app/api/lib/getAuthToken";
56
import {
67
type Range,
78
getLastNDaysRange,
@@ -10,7 +11,6 @@ import { AccountAbstractionAnalytics } from "components/smart-wallets/AccountAbs
1011
import { AccountAbstractionSummary } from "components/smart-wallets/AccountAbstractionAnalytics/AccountAbstractionSummary";
1112
import { notFound, redirect } from "next/navigation";
1213
import type { SearchParams } from "nuqs/server";
13-
import { getAuthToken } from "../../../../../../api/lib/getAuthToken";
1414
import { searchParamLoader } from "./search-params";
1515

1616
interface PageParams {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { ChakraProviderSetup } from "@/components/ChakraProviderSetup";
44
import { UnderlineLink } from "@/components/ui/UnderlineLink";
55
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
66
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
7+
import { getAuthToken } from "@app/api/lib/getAuthToken";
8+
import { getValidTeamPlan } from "@app/team/components/TeamHeader/getValidTeamPlan";
79
import { AccountAbstractionSettingsPage } from "components/smart-wallets/SponsorshipPolicies";
810
import { CircleAlertIcon } from "lucide-react";
911
import { redirect } from "next/navigation";
10-
import { getAuthToken } from "../../../../../../../api/lib/getAuthToken";
11-
import { getValidTeamPlan } from "../../../../../../components/TeamHeader/getValidTeamPlan";
1212

1313
export default async function Page(props: {
1414
params: Promise<{ team_slug: string; project_slug: string }>;

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/ProjectSidebarLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function ProjectSidebarLayout(props: {
3939
},
4040
{
4141
label: "Account Abstraction",
42-
href: `${layoutPath}/connect/account-abstraction`,
42+
href: `${layoutPath}/account-abstraction`,
4343
icon: SmartAccountIcon,
4444
},
4545
{

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/settings/ProjectGeneralSettingsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export function ProjectGeneralSettingsPageUI(props: {
217217
const projectLayout = `/team/${props.teamSlug}/${props.project.slug}`;
218218

219219
const paths = {
220-
aaConfig: `${projectLayout}/connect/account-abstraction/settings`,
220+
aaConfig: `${projectLayout}/account-abstraction/settings`,
221221
inAppConfig: `${projectLayout}/wallets/settings`,
222222
payConfig: `${projectLayout}/connect/universal-bridge/settings`,
223223
afterDeleteRedirectTo: `/team/${props.teamSlug}`,

apps/dashboard/src/components/smart-wallets/AccountAbstractionAnalytics/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"use client";
2+
import { SponsoredTransactionsTable } from "@app/team/[team_slug]/(team)/~/usage/overview/components/SponsoredTransactionsTable";
3+
import { searchParams } from "@app/team/[team_slug]/[project_slug]/(sidebar)/account-abstraction/search-params";
24
import {
35
DateRangeSelector,
46
type Range,
@@ -10,8 +12,6 @@ import { useQueryState } from "nuqs";
1012
import { useTransition } from "react";
1113
import type { ThirdwebClient } from "thirdweb";
1214
import type { UserOpStats } from "types/analytics";
13-
import { SponsoredTransactionsTable } from "../../../app/(app)/team/[team_slug]/(team)/~/usage/overview/components/SponsoredTransactionsTable";
14-
import { searchParams } from "../../../app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/account-abstraction/search-params";
1515
import { SponsoredTransactionsChartCard } from "./SponsoredTransactionsChartCard";
1616
import { TotalSponsoredChartCard } from "./TotalSponsoredChartCard";
1717

0 commit comments

Comments
 (0)