chore: prettier files

This commit is contained in:
Mo
2022-05-03 10:51:40 -05:00
parent f5a90060ea
commit 43d94fbcbf
127 changed files with 1365 additions and 2428 deletions

View File

@@ -1,9 +1,6 @@
import { useCallback, useEffect } from 'preact/hooks'
export function useCloseOnClickOutside(
container: { current: HTMLDivElement | null },
callback: () => void,
): void {
export function useCloseOnClickOutside(container: { current: HTMLDivElement | null }, callback: () => void): void {
const closeOnClickOutside = useCallback(
(event: { target: EventTarget | null }) => {
if (!container.current) {