Fixing styling, and removing strict from tsconfig

This commit is contained in:
Frank Delaguila
2022-11-05 18:09:09 -06:00
parent a036c449f7
commit 2023d09286
8 changed files with 142 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
import { useRef, useEffect, useState, ReactNode } from 'react';
import { useRef, useEffect, useState, ReactNode, MutableRefObject } from 'react';
import { createPortal } from 'react-dom';
interface Props {
@@ -7,7 +7,7 @@ interface Props {
}
export default function ClientOnlyPortal({ children, selector }: Props) {
const ref = useRef();
const ref = useRef<HTMLDivElement>(null);
const [mounted, setMounted] = useState(false);
useEffect(() => {