File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
(dashboard)/dashboard/connect/in-app-wallets/[clientId]
team/[team_slug]/[project_slug]/connect/in-app-wallets/_components Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11import { InAppWalletsSummary } from "components/embedded-wallets/Analytics/Summary" ;
22import { getInAppWalletUsage } from "data/analytics/wallets/in-app" ;
3+ import { subDays } from "date-fns" ;
34import { redirect } from "next/navigation" ;
45import { getAuthToken } from "../../../../../api/lib/getAuthToken" ;
56import { InAppWaletFooterSection } from "../../../../../team/[team_slug]/[project_slug]/connect/in-app-wallets/_components/footer" ;
@@ -42,7 +43,7 @@ export default async function Page(props: {
4243
4344 const monthlyStatsPromise = getInAppWalletUsage ( {
4445 clientId,
45- from : new Date ( new Date ( ) . getFullYear ( ) , new Date ( ) . getMonth ( ) , 1 ) ,
46+ from : subDays ( new Date ( ) , 30 ) ,
4647 to : new Date ( ) ,
4748 period : "month" ,
4849 } ) ;
Original file line number Diff line number Diff line change 11import { TrackedLinkTW } from "@/components/ui/tracked-link" ;
22import { InAppWalletsSummary } from "components/embedded-wallets/Analytics/Summary" ;
33import { getInAppWalletUsage } from "data/analytics/wallets/in-app" ;
4+ import { subDays } from "date-fns" ;
45import { TRACKING_CATEGORY } from "../_constants" ;
56
67export async function InAppWalletsHeader ( { clientId } : { clientId : string } ) {
@@ -13,7 +14,7 @@ export async function InAppWalletsHeader({ clientId }: { clientId: string }) {
1314
1415 const monthlyStatsPromise = getInAppWalletUsage ( {
1516 clientId,
16- from : new Date ( new Date ( ) . getFullYear ( ) , new Date ( ) . getMonth ( ) , 1 ) ,
17+ from : subDays ( new Date ( ) , 30 ) ,
1718 to : new Date ( ) ,
1819 period : "month" ,
1920 } ) ;
You can’t perform that action at this time.
0 commit comments