Added reports section.

This commit is contained in:
Mike Cao
2023-05-17 23:20:06 -07:00
parent ad918c5bba
commit a5700d4a25
36 changed files with 422 additions and 43 deletions

View File

@@ -1,6 +1,6 @@
import { useEffect } from 'react';
export default function useDocumentClick(handler) {
export function useDocumentClick(handler) {
useEffect(() => {
document.addEventListener('click', handler);
@@ -11,3 +11,5 @@ export default function useDocumentClick(handler) {
return null;
}
export default useDocumentClick;