Skip to content
Snippets Groups Projects
Commit b8baf11d authored by Katarína Sieklová's avatar Katarína Sieklová
Browse files

fix: any

parent 58cdd6c5
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -32,6 +32,7 @@ const Opening = () => {
});
useEffect(() => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
getAnimationObject((prev: any) => {
if (prev === undefined || prev === null) return prev;
const glucoseInstance = prev["glucose"];
......
......@@ -19,7 +19,7 @@ interface AnimateProps {
export const useAnimate = ({link, text, typewriterRef, audioFiles}: AnimateProps) => {
const language = useRecoilValue(languageAtom);
const [paused, setPaused] = useState(false);
const [animationObj, setAnimationObject] = useState<any>(null);
const [animationObj, setAnimationObject] = useState<unknown>(null);
const getAnimationObject = (obj: SetStateAction<null>) => setAnimationObject(obj);
const [currentIndex, setCurrentIndex] = useState(0);
const [isAnimationComplete, setIsAnimationComplete] = useState(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment