Updated loading for reports.

This commit is contained in:
Mike Cao 2023-12-12 20:05:45 -08:00
parent 9735769413
commit e1c65cdf2a
4 changed files with 24 additions and 7 deletions

View file

@ -1,6 +1,14 @@
import styles from './ReportBody.module.css';
import { useContext } from 'react';
import { ReportContext } from './Report';
export function ReportBody({ children }) {
const { report } = useContext(ReportContext);
if (!report) {
return null;
}
return <div className={styles.body}>{children}</div>;
}