Fixed 'use client' usage.

This commit is contained in:
Mike Cao 2024-02-05 23:59:33 -08:00
parent be5592446a
commit f7151a880e
208 changed files with 323 additions and 385 deletions

View file

@ -1,5 +1,4 @@
'use client';
import Report from '../[reportId]/Report';
import ReportPage from '../[reportId]/ReportPage';
import ReportHeader from '../[reportId]/ReportHeader';
import ReportMenu from '../[reportId]/ReportMenu';
import ReportBody from '../[reportId]/ReportBody';
@ -15,7 +14,7 @@ const defaultParameters = {
export default function InsightsReport({ reportId }: { reportId?: string }) {
return (
<Report reportId={reportId} defaultParameters={defaultParameters}>
<ReportPage reportId={reportId} defaultParameters={defaultParameters}>
<ReportHeader icon={<Lightbulb />} />
<ReportMenu>
<InsightsParameters />
@ -23,6 +22,6 @@ export default function InsightsReport({ reportId }: { reportId?: string }) {
<ReportBody>
<InsightsTable />
</ReportBody>
</Report>
</ReportPage>
);
}