Updated report header.

This commit is contained in:
Mike Cao 2023-10-15 20:24:28 -07:00
parent aa5d81d6a1
commit 2732ed18a4
8 changed files with 58 additions and 53 deletions

View file

@ -8,6 +8,10 @@ export const ReportContext = createContext(null);
export function Report({ reportId, defaultParameters, children, ...props }) {
const report = useReport(reportId, defaultParameters);
if (!report) {
return null;
}
return (
<ReportContext.Provider value={{ ...report }}>
<div {...props} className={styles.container}>