Skip to content

Commit ba4d609

Browse files
committed
Dashboard: Move Universal Bridge page
1 parent 5774d75 commit ba4d609

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
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
@@ -43,7 +43,7 @@ export function ProjectSidebarLayout(props: {
4343
icon: SmartAccountIcon,
4444
},
4545
{
46-
href: `${layoutPath}/connect/universal-bridge`,
46+
href: `${layoutPath}/universal-bridge`,
4747
icon: PayIcon,
4848
label: "Universal Bridge",
4949
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ function AppHighlightsCard({
439439
<EmptyStateContent
440440
metric="Fees"
441441
description="Your app hasn't collected any fees yet."
442-
link={`/team/${params.team_slug}/${params.project_slug}/connect/universal-bridge/settings`}
442+
link={`/team/${params.team_slug}/${params.project_slug}/universal-bridge/settings`}
443443
/>
444444
),
445445
},

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
@@ -219,7 +219,7 @@ export function ProjectGeneralSettingsPageUI(props: {
219219
const paths = {
220220
aaConfig: `${projectLayout}/account-abstraction/settings`,
221221
inAppConfig: `${projectLayout}/wallets/settings`,
222-
payConfig: `${projectLayout}/connect/universal-bridge/settings`,
222+
payConfig: `${projectLayout}/universal-bridge/settings`,
223223
afterDeleteRedirectTo: `/team/${props.teamSlug}`,
224224
};
225225

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getProject } from "@/api/projects";
22
import { UnderlineLink } from "@/components/ui/UnderlineLink";
33
import { TabPathLinks } from "@/components/ui/tabs";
44
import { redirect } from "next/navigation";
5-
import { FooterLinksSection } from "../../components/footer/FooterLinksSection";
5+
import { FooterLinksSection } from "../components/footer/FooterLinksSection";
66

77
export default async function Layout(props: {
88
params: Promise<{
@@ -18,7 +18,7 @@ export default async function Layout(props: {
1818
redirect(`/team/${params.team_slug}`);
1919
}
2020

21-
const payLayoutPath = `/team/${params.team_slug}/${params.project_slug}/connect/universal-bridge`;
21+
const payLayoutPath = `/team/${params.team_slug}/${params.project_slug}/universal-bridge`;
2222

2323
return (
2424
<div className="flex grow flex-col">
File renamed without changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { getProject } from "@/api/projects";
22
import { Spinner } from "@/components/ui/Spinner/Spinner";
33
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
4+
import { getAuthToken } from "@app/api/lib/getAuthToken";
5+
import { loginRedirect } from "@app/login/loginRedirect";
46
import { PayAnalytics } from "components/pay/PayAnalytics/PayAnalytics";
57
import { PayAnalyticsFilter } from "components/pay/PayAnalytics/components/PayAnalyticsFilter";
68
import { getUniversalBridgeFiltersFromSearchParams } from "lib/time";
@@ -10,8 +12,6 @@ import {
1012
ResponsiveSearchParamsProvider,
1113
ResponsiveSuspense,
1214
} from "responsive-rsc";
13-
import { getAuthToken } from "../../../../../../api/lib/getAuthToken";
14-
import { loginRedirect } from "../../../../../../login/loginRedirect";
1515

1616
export default async function Page(props: {
1717
params: Promise<{
@@ -30,7 +30,7 @@ export default async function Page(props: {
3030

3131
if (!authToken) {
3232
loginRedirect(
33-
`/team/${params.team_slug}/${params.project_slug}/connect/universal-bridge`,
33+
`/team/${params.team_slug}/${params.project_slug}/universal-bridge`,
3434
);
3535
}
3636

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 { getTeamBySlug } from "@/api/team";
33
import { getFees } from "@/api/universal-bridge/developer";
44
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
5+
import { getAuthToken } from "@app/api/lib/getAuthToken";
6+
import { loginRedirect } from "@app/login/loginRedirect";
57
import { PayConfig } from "components/pay/PayConfig";
68
import { RouteDiscovery } from "components/pay/RouteDiscovery";
79
import { redirect } from "next/navigation";
8-
import { getAuthToken } from "../../../../../../../api/lib/getAuthToken";
9-
import { loginRedirect } from "../../../../../../../login/loginRedirect";
1010

1111
export default async function Page(props: {
1212
params: Promise<{
@@ -24,7 +24,7 @@ export default async function Page(props: {
2424

2525
if (!authToken) {
2626
loginRedirect(
27-
`/team/${team_slug}/${project_slug}/connect/universal-bridge/settings`,
27+
`/team/${team_slug}/${project_slug}/universal-bridge/settings`,
2828
);
2929
}
3030

@@ -63,7 +63,7 @@ export default async function Page(props: {
6363
});
6464

6565
return (
66-
<div className="flex flex-col p-5">
66+
<div className="flex flex-col">
6767
<PayConfig
6868
project={project}
6969
teamId={team.id}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)