Skip to content

Commit dcadfb1

Browse files
committed
cleanup
1 parent 33d49f5 commit dcadfb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/dashboard/app/demo/layout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { AnalyticsToolbar } from '@/app/(main)/websites/[id]/_components/analyti
66
import { Sidebar } from '@/components/layout/sidebar';
77
import { cn } from '@/lib/utils';
88
import { isAnalyticsRefreshingAtom } from '@/stores/jotai/filterAtoms';
9+
import { useParams } from 'next/navigation';
910

1011

1112
interface MainLayoutProps {
@@ -14,6 +15,7 @@ interface MainLayoutProps {
1415

1516
export default function MainLayout({ children }: MainLayoutProps) {
1617
const [isRefreshing, setIsRefreshing] = useAtom(isAnalyticsRefreshingAtom);
18+
const { id } = useParams();
1719

1820
const handleRefresh = async () => {
1921
setIsRefreshing(true);
@@ -41,6 +43,7 @@ export default function MainLayout({ children }: MainLayoutProps) {
4143
>
4244
<div className="flex-shrink-0 space-y-4">
4345
<AnalyticsToolbar
46+
websiteId={id as string}
4447
isRefreshing={isRefreshing}
4548
onRefresh={handleRefresh}
4649
/>

0 commit comments

Comments
 (0)