mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Added reports section.
This commit is contained in:
parent
ad918c5bba
commit
a5700d4a25
36 changed files with 422 additions and 43 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue