Skip to content

Commit 7a40609

Browse files
committed
Dashboard: Move In-app-wallets page to /wallets route
1 parent ece89a8 commit 7a40609

File tree

11 files changed

+15
-17
lines changed

11 files changed

+15
-17
lines changed

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
@@ -34,7 +34,7 @@ export function ProjectSidebarLayout(props: {
3434
},
3535
{
3636
label: "Wallets",
37-
href: `${layoutPath}/connect/in-app-wallets`,
37+
href: `${layoutPath}/wallets`,
3838
icon: WalletIcon,
3939
},
4040
{

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
@@ -218,7 +218,7 @@ export function ProjectGeneralSettingsPageUI(props: {
218218

219219
const paths = {
220220
aaConfig: `${projectLayout}/connect/account-abstraction/settings`,
221-
inAppConfig: `${projectLayout}/connect/in-app-wallets/settings`,
221+
inAppConfig: `${projectLayout}/wallets/settings`,
222222
payConfig: `${projectLayout}/connect/universal-bridge/settings`,
223223
afterDeleteRedirectTo: `/team/${props.teamSlug}`,
224224
};
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 InAppWalletsFooter() {
44
return (
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@ export default async function Page(props: {
1010
}) {
1111
const params = await props.params;
1212
// Default to the users tab
13-
redirect(
14-
`/team/${params.team_slug}/${params.project_slug}/connect/in-app-wallets`,
15-
);
13+
redirect(`/team/${params.team_slug}/${params.project_slug}/wallets`);
1614
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ export default async function Layout(props: {
3333
links={[
3434
{
3535
name: "Analytics",
36-
path: `/team/${team_slug}/${project_slug}/connect/in-app-wallets`,
36+
path: `/team/${team_slug}/${project_slug}/wallets`,
3737
exactMatch: true,
3838
},
3939
{
4040
name: "Users",
41-
path: `/team/${team_slug}/${project_slug}/connect/in-app-wallets/users`,
41+
path: `/team/${team_slug}/${project_slug}/wallets/users`,
4242
exactMatch: true,
4343
},
4444
{
4545
name: "Settings",
46-
path: `/team/${team_slug}/${project_slug}/connect/in-app-wallets/settings`,
46+
path: `/team/${team_slug}/${project_slug}/wallets/settings`,
4747
exactMatch: true,
4848
},
4949
]}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { getProject } from "@/api/projects";
22
import { getSMSCountryTiers } from "@/api/sms";
33
import { getTeamBySlug } from "@/api/team";
44
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
5+
import { getAuthToken } from "@app/api/lib/getAuthToken";
6+
import { loginRedirect } from "@app/login/loginRedirect";
7+
import { getValidTeamPlan } from "@app/team/components/TeamHeader/getValidTeamPlan";
58
import { InAppWalletSettingsPage } from "components/embedded-wallets/Configure";
69
import { redirect } from "next/navigation";
7-
import { getAuthToken } from "../../../../../../../api/lib/getAuthToken";
8-
import { loginRedirect } from "../../../../../../../login/loginRedirect";
9-
import { getValidTeamPlan } from "../../../../../../components/TeamHeader/getValidTeamPlan";
1010

1111
export default async function Page(props: {
1212
params: Promise<{ team_slug: string; project_slug: string }>;
@@ -21,7 +21,7 @@ export default async function Page(props: {
2121
]);
2222

2323
if (!authToken) {
24-
loginRedirect(`/team/${team_slug}/connect/in-app-wallets/settings`);
24+
loginRedirect(`/team/${team_slug}/wallets/settings`);
2525
}
2626

2727
if (!team) {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { getProject } from "@/api/projects";
22
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
3+
import { getAuthToken } from "@app/api/lib/getAuthToken";
4+
import { loginRedirect } from "@app/login/loginRedirect";
35
import { InAppWalletUsersPageContent } from "components/embedded-wallets/Users";
46
import { redirect } from "next/navigation";
5-
import { getAuthToken } from "../../../../../../../api/lib/getAuthToken";
6-
import { loginRedirect } from "../../../../../../../login/loginRedirect";
77

88
export default async function Page(props: {
99
params: Promise<{ team_slug: string; project_slug: string }>;
@@ -16,7 +16,7 @@ export default async function Page(props: {
1616

1717
if (!authToken) {
1818
loginRedirect(
19-
`/team/${params.team_slug}/${params.project_slug}/connect/in-app-wallets/users`,
19+
`/team/${params.team_slug}/${params.project_slug}/wallets/users`,
2020
);
2121
}
2222

packages/service-utils/src/core/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const SERVICE_DEFINITIONS = {
3939
},
4040
embeddedWallets: {
4141
name: "embeddedWallets",
42-
title: "In-App Wallets",
42+
title: "Wallets",
4343
description: "E-mail and social login wallets for easy web3 onboarding",
4444
// all actions allowed
4545
actions: [],

0 commit comments

Comments
 (0)