From 80ac0f4ce394a2f069cf8b83bb0e31ab41cd5c3d Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Fri, 8 May 2026 15:38:02 +0800 Subject: [PATCH] tweaks --- .../{create-storage-hook/index.ts => create-storage-hook.ts} | 2 +- .../{use-local-storage/index.ts => use-local-storage.ts} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename web/hooks/{create-storage-hook/index.ts => create-storage-hook.ts} (99%) rename web/hooks/{use-local-storage/index.ts => use-local-storage.ts} (88%) diff --git a/web/hooks/create-storage-hook/index.ts b/web/hooks/create-storage-hook.ts similarity index 99% rename from web/hooks/create-storage-hook/index.ts rename to web/hooks/create-storage-hook.ts index aac7cf23f3..fe88b387b1 100644 --- a/web/hooks/create-storage-hook/index.ts +++ b/web/hooks/create-storage-hook.ts @@ -1,7 +1,7 @@ /* eslint-disable react/component-hook-factories -- Mirrors foxact's storage hook factory shape. */ import type { Dispatch, SetStateAction } from 'react' import { useCallback, useEffect, useLayoutEffect as useLayoutEffectFromReact, useMemo, useSyncExternalStore } from 'react' -import { noop } from '../noop' +import { noop } from './noop' import 'client-only' /* diff --git a/web/hooks/use-local-storage/index.ts b/web/hooks/use-local-storage.ts similarity index 88% rename from web/hooks/use-local-storage/index.ts rename to web/hooks/use-local-storage.ts index 8e3f828251..30ef7cd6e0 100644 --- a/web/hooks/use-local-storage/index.ts +++ b/web/hooks/use-local-storage.ts @@ -3,8 +3,8 @@ import type { Serializer, UseStorageParserOption, UseStorageRawOption, -} from '../create-storage-hook' -import { createStorage } from '../create-storage-hook' +} from './create-storage-hook' +import { createStorage } from './create-storage-hook' import 'client-only' export type UseLocalStorageRawOption = UseStorageRawOption