feat: refactor all components in injected

This commit is contained in:
doprz
2024-03-04 14:51:14 -06:00
parent f93a98e46a
commit 0c44849e15
10 changed files with 27 additions and 30 deletions

View File

@@ -6,7 +6,7 @@ import ReactDOM from 'react-dom';
* This adds a new column to the course catalog table header.
* @returns a react portal to the new column or null if the column has not been created yet.
*/
export default function TableHead({ children }: PropsWithChildren) {
export default function TableHead({ children }: PropsWithChildren): JSX.Element | null {
const [container, setContainer] = useState<HTMLTableCellElement | null>(null);
useEffect(() => {