diff --git a/apps/dashboard/src/@3rdweb-sdk/react/hooks/useLoggedInUser.ts b/apps/dashboard/src/@3rdweb-sdk/react/hooks/useLoggedInUser.ts
index c61c62fd4a0..ab4b5fe9c7e 100644
--- a/apps/dashboard/src/@3rdweb-sdk/react/hooks/useLoggedInUser.ts
+++ b/apps/dashboard/src/@3rdweb-sdk/react/hooks/useLoggedInUser.ts
@@ -1,3 +1,5 @@
+"use client";
+
import { isLoginRequired } from "@/constants/auth";
import { useDashboardRouter } from "@/lib/DashboardRouter";
import { useQuery } from "@tanstack/react-query";
diff --git a/apps/dashboard/src/app/(dashboard)/dashboard/connect/layout.tsx b/apps/dashboard/src/app/(dashboard)/dashboard/connect/layout.tsx
index 374378f7e5a..b56b90880ac 100644
--- a/apps/dashboard/src/app/(dashboard)/dashboard/connect/layout.tsx
+++ b/apps/dashboard/src/app/(dashboard)/dashboard/connect/layout.tsx
@@ -1,7 +1,13 @@
+import { BillingAlerts } from "../../../../components/settings/Account/Billing/alerts/Alert";
import { ConnectSidebarLayout } from "./DashboardConnectLayout";
export default function Layout(props: {
children: React.ReactNode;
}) {
- return {props.children};
+ return (
+
+
+ {props.children}
+
+ );
}
diff --git a/apps/dashboard/src/components/layout/app-shell/index.tsx b/apps/dashboard/src/components/layout/app-shell/index.tsx
index 0330a196aac..59d40762e4a 100644
--- a/apps/dashboard/src/components/layout/app-shell/index.tsx
+++ b/apps/dashboard/src/components/layout/app-shell/index.tsx
@@ -26,7 +26,7 @@ export const AppShell: ComponentWithChildren = ({
className={cn("min-h-screen py-6 md:pt-10 md:pb-20", mainClassName)}
>
-
+
{layout === "custom-contract" ? (
diff --git a/apps/dashboard/src/components/settings/Account/Billing/alerts/Alert.tsx b/apps/dashboard/src/components/settings/Account/Billing/alerts/Alert.tsx
index 6ec37f4c90f..328fe510c76 100644
--- a/apps/dashboard/src/components/settings/Account/Billing/alerts/Alert.tsx
+++ b/apps/dashboard/src/components/settings/Account/Billing/alerts/Alert.tsx
@@ -3,6 +3,7 @@
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { Button } from "@/components/ui/button";
import { TrackedLinkTW } from "@/components/ui/tracked-link";
+import { cn } from "@/lib/utils";
import {
type Account,
AccountStatus,
@@ -36,7 +37,9 @@ type AlertConditionType = {
| "usage";
};
-export const BillingAlerts = () => {
+export const BillingAlerts = (props: {
+ className?: string;
+}) => {
const pathname = usePathname();
const { isLoggedIn } = useLoggedInUser();
const usageQuery = useAccountUsage();
@@ -64,6 +67,7 @@ export const BillingAlerts = () => {
);
};
@@ -71,6 +75,7 @@ export const BillingAlerts = () => {
export function BillingAlertsUI(props: {
usageData: UsageBillableByService;
dashboardAccount: Account;
+ className?: string;
}) {
const { usageData, dashboardAccount } = props;
const trackEvent = useTrack();
@@ -295,7 +300,9 @@ export function BillingAlertsUI(props: {
return null;
}
- return {alerts}
;
+ return (
+ {alerts}
+ );
}
type AddPaymentNotificationProps = {