From 90b931acb30739d734125ca73001cc674ee02577 Mon Sep 17 00:00:00 2001 From: Kirk Lin Date: Thu, 17 Aug 2023 09:29:33 +0800 Subject: [PATCH] refactor(hooks): moved specific hooks to shared package --- apps/admin/src/composables/index.ts | 3 --- packages/web/hooks/src/index.ts | 3 +++ .../composables => packages/web/hooks/src}/useComponentRef.ts | 0 .../composables => packages/web/hooks/src}/useMergeState.ts | 0 .../src/composables => packages/web/hooks/src}/useState.ts | 0 5 files changed, 3 insertions(+), 3 deletions(-) rename {apps/admin/src/composables => packages/web/hooks/src}/useComponentRef.ts (100%) rename {apps/admin/src/composables => packages/web/hooks/src}/useMergeState.ts (100%) rename {apps/admin/src/composables => packages/web/hooks/src}/useState.ts (100%) diff --git a/apps/admin/src/composables/index.ts b/apps/admin/src/composables/index.ts index bcaf6ca..17b8f8e 100644 --- a/apps/admin/src/composables/index.ts +++ b/apps/admin/src/composables/index.ts @@ -1,6 +1,3 @@ export * from "./setting"; export * from "./useChartOption"; -export * from "./useComponentRef"; -export * from "./useMergeState"; export * from "./useNaiveUIConfigProvider"; -export * from "./useState"; diff --git a/packages/web/hooks/src/index.ts b/packages/web/hooks/src/index.ts index 9cf0674..78a9c66 100644 --- a/packages/web/hooks/src/index.ts +++ b/packages/web/hooks/src/index.ts @@ -1,2 +1,5 @@ +export * from "./useComponentRef"; export * from "./useLoading"; +export * from "./useMergeState"; export * from "./useScreen"; +export * from "./useState"; diff --git a/apps/admin/src/composables/useComponentRef.ts b/packages/web/hooks/src/useComponentRef.ts similarity index 100% rename from apps/admin/src/composables/useComponentRef.ts rename to packages/web/hooks/src/useComponentRef.ts diff --git a/apps/admin/src/composables/useMergeState.ts b/packages/web/hooks/src/useMergeState.ts similarity index 100% rename from apps/admin/src/composables/useMergeState.ts rename to packages/web/hooks/src/useMergeState.ts diff --git a/apps/admin/src/composables/useState.ts b/packages/web/hooks/src/useState.ts similarity index 100% rename from apps/admin/src/composables/useState.ts rename to packages/web/hooks/src/useState.ts