Fix tsc errors (#649)

* fixed tsc errors

* fixed tsc errors

* fixed tsc errors

* fixing tsc errors

* fixing more tsc errors

* fixing more tsc errors

* fixed tsc errors

* fixing tsc errors

* fixing PR issues

* commented out tsc check

* completing tsc fixes

* updating lockfile

* removed react-hooks
This commit is contained in:
Dan Ditomaso
2025-06-12 19:00:30 -04:00
committed by GitHub
parent 851da0707c
commit 47f8264c31
59 changed files with 1140 additions and 2799 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
import Cookies, { type CookieAttributes } from "js-cookie";
import Cookies from "js-cookie";
import { useCallback, useState } from "react";
interface CookieHookResult<T> {
value: T | undefined;
setCookie: (value: T, options?: CookieAttributes) => void;
setCookie: (value: T, options?: Cookies.CookieAttributes) => void;
removeCookie: () => void;
}
@@ -22,7 +22,7 @@ function useCookie<T extends object>(
});
const setCookie = useCallback(
(value: T, options?: CookieAttributes) => {
(value: T, options?: Cookies.CookieAttributes) => {
try {
Cookies.set(cookieName, JSON.stringify(value), options);
setCookieValue(value);