Skip to content

Commit 3e3197d

Browse files
committed
refactor(dashboard): remove analytics connect page
1 parent 31ac9c1 commit 3e3197d

File tree

2 files changed

+3
-26
lines changed

2 files changed

+3
-26
lines changed

apps/dashboard/src/app/team/[team_slug]/[project_slug]/connect/layout.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ export default async function Layout(props: {
1212
const { team_slug, project_slug } = await props.params;
1313

1414
const links: SidebarLink[] = [
15-
{
16-
label: "Analytics",
17-
href: `/team/${team_slug}/${project_slug}/connect`,
18-
exactMatch: true,
19-
},
2015
{
2116
label: "In-App Wallets",
2217
href: `/team/${team_slug}/${project_slug}/connect/in-app-wallets`,
Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { getProject } from "@/api/projects";
2-
import { ConnectSDKCard } from "components/shared/ConnectSDKCard";
3-
import { notFound } from "next/navigation";
4-
import { ConnectAnalyticsDashboard } from "./analytics/ConnectAnalyticsDashboard";
2+
import { notFound, redirect } from "next/navigation";
53

64
export default async function Page(props: {
75
params: Promise<{
@@ -16,23 +14,7 @@ export default async function Page(props: {
1614
notFound();
1715
}
1816

19-
return (
20-
<div>
21-
<div>
22-
<h1 className="mb-1 font-semibold text-2xl tracking-tight md:text-3xl">
23-
Connect Analytics
24-
</h1>
25-
<p className="text-muted-foreground text-sm md:text-base">
26-
Visualize how your users are connecting to your app
27-
</p>
28-
</div>
29-
<div className="h-6 lg:h-8" />
30-
<ConnectAnalyticsDashboard
31-
clientId={project.publishableKey}
32-
connectLayoutSlug={`/team/${params.team_slug}/${params.project_slug}/connect`}
33-
/>
34-
<div className="h-4 lg:h-8" />
35-
<ConnectSDKCard description="Add the Connect SDK to your app to get started collecting analytics." />
36-
</div>
17+
redirect(
18+
`/team/${params.team_slug}/${params.project_slug}/connect/in-app-wallets`,
3719
);
3820
}

0 commit comments

Comments
 (0)