File tree Expand file tree Collapse file tree 2 files changed +3
-26
lines changed
apps/dashboard/src/app/team/[team_slug]/[project_slug]/connect Expand file tree Collapse file tree 2 files changed +3
-26
lines changed Original file line number Diff line number Diff 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` ,
Original file line number Diff line number Diff line change 11import { 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
64export 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}
You can’t perform that action at this time.
0 commit comments