Fix all comments

This commit is contained in:
2023-11-05 18:28:51 +07:00
parent b0dd3abf0e
commit 3f95ce8343
39 changed files with 483 additions and 443 deletions
@@ -1,4 +1,7 @@
import { useEffect, useRef } from 'react';
import { MutableRefObject, useEffect, useRef } from 'react';
// Types
import { Nullable } from '../globals/types';
/**
* Custom hook to call handler when click outside element
@@ -9,7 +12,7 @@ import { useEffect, useRef } from 'react';
export const useOutsideClick = (
handler: () => void,
listeningCapturing = true,
): React.MutableRefObject<HTMLUListElement | null> => {
): MutableRefObject<Nullable<HTMLUListElement>> => {
const ref = useRef<HTMLUListElement>(null);
useEffect(() => {