Fixed setError/useError typos & added stronger typing

This commit is contained in:
Koper
2023-08-31 22:07:58 +07:00
parent 7662d54c14
commit df4dc841fc
3 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,8 @@
import * as Sentry from "@sentry/react";
import { Dispatch, SetStateAction } from "react";
const handleError = (
setError: Function,
setError: Dispatch<SetStateAction<String>>,
errorString: string,
errorObj?: any,
) => {