File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { AnalyticsToolbar } from '@/app/(main)/websites/[id]/_components/analyti
66import { Sidebar } from '@/components/layout/sidebar' ;
77import { cn } from '@/lib/utils' ;
88import { isAnalyticsRefreshingAtom } from '@/stores/jotai/filterAtoms' ;
9+ import { useParams } from 'next/navigation' ;
910
1011
1112interface MainLayoutProps {
@@ -14,6 +15,7 @@ interface MainLayoutProps {
1415
1516export 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 />
You can’t perform that action at this time.
0 commit comments