From 5e3f47564a03c229df50a4ceec3abd61410c0c6c Mon Sep 17 00:00:00 2001 From: YangFong Date: Thu, 18 Apr 2024 17:40:50 +0800 Subject: [PATCH] fix typo `user-isomorphic-layout-effect.tsx` => `use-isomorphic-layout-effect.tsx` --- packages/client/src/hooks/use-interval.tsx | 2 +- ...rphic-layout-effect.tsx => use-isomorphic-layout-effect.tsx} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename packages/client/src/hooks/{user-isomorphic-layout-effect.tsx => use-isomorphic-layout-effect.tsx} (100%) diff --git a/packages/client/src/hooks/use-interval.tsx b/packages/client/src/hooks/use-interval.tsx index 0a6def3d..f2342d5c 100644 --- a/packages/client/src/hooks/use-interval.tsx +++ b/packages/client/src/hooks/use-interval.tsx @@ -1,7 +1,7 @@ import { useCallback, useEffect, useRef, useState } from 'react'; +import { useIsomorphicLayoutEffect } from './use-isomorphic-layout-effect'; import { useToggle } from './use-toggle'; -import { useIsomorphicLayoutEffect } from './user-isomorphic-layout-effect'; export const useInterval = (callback: () => void, delay: number) => { const savedCallback = useRef(callback); diff --git a/packages/client/src/hooks/user-isomorphic-layout-effect.tsx b/packages/client/src/hooks/use-isomorphic-layout-effect.tsx similarity index 100% rename from packages/client/src/hooks/user-isomorphic-layout-effect.tsx rename to packages/client/src/hooks/use-isomorphic-layout-effect.tsx