From 30072c8d246109f5914f0b69954ce98543e33571 Mon Sep 17 00:00:00 2001 From: yifanwww Date: Sun, 13 Aug 2023 16:44:54 +0800 Subject: [PATCH] refactor: rename redux relevant files --- packages/app-renderer/src/MainWindow/redux/hooks/index.ts | 1 - packages/app-renderer/src/MainWindow/redux/hooks/use.app.ts | 2 +- .../redux/hooks/{useMainSelector.ts => useSelector.ts} | 0 .../redux/thunks/{createMainThunk.ts => createThunk.ts} | 0 packages/app-renderer/src/MainWindow/redux/thunks/thunks.app.ts | 2 +- 5 files changed, 2 insertions(+), 3 deletions(-) rename packages/app-renderer/src/MainWindow/redux/hooks/{useMainSelector.ts => useSelector.ts} (100%) rename packages/app-renderer/src/MainWindow/redux/thunks/{createMainThunk.ts => createThunk.ts} (100%) diff --git a/packages/app-renderer/src/MainWindow/redux/hooks/index.ts b/packages/app-renderer/src/MainWindow/redux/hooks/index.ts index 14f0ed48..904d28b9 100644 --- a/packages/app-renderer/src/MainWindow/redux/hooks/index.ts +++ b/packages/app-renderer/src/MainWindow/redux/hooks/index.ts @@ -1,3 +1,2 @@ export * from './use.app'; export * from './useDispatching'; -export * from './useMainSelector'; diff --git a/packages/app-renderer/src/MainWindow/redux/hooks/use.app.ts b/packages/app-renderer/src/MainWindow/redux/hooks/use.app.ts index 6e3d2883..c9034a24 100644 --- a/packages/app-renderer/src/MainWindow/redux/hooks/use.app.ts +++ b/packages/app-renderer/src/MainWindow/redux/hooks/use.app.ts @@ -1,3 +1,3 @@ -import { useMainSelector } from './useMainSelector'; +import { useMainSelector } from './useSelector'; export const useAppDetails = () => useMainSelector((state) => state.appDetails); diff --git a/packages/app-renderer/src/MainWindow/redux/hooks/useMainSelector.ts b/packages/app-renderer/src/MainWindow/redux/hooks/useSelector.ts similarity index 100% rename from packages/app-renderer/src/MainWindow/redux/hooks/useMainSelector.ts rename to packages/app-renderer/src/MainWindow/redux/hooks/useSelector.ts diff --git a/packages/app-renderer/src/MainWindow/redux/thunks/createMainThunk.ts b/packages/app-renderer/src/MainWindow/redux/thunks/createThunk.ts similarity index 100% rename from packages/app-renderer/src/MainWindow/redux/thunks/createMainThunk.ts rename to packages/app-renderer/src/MainWindow/redux/thunks/createThunk.ts diff --git a/packages/app-renderer/src/MainWindow/redux/thunks/thunks.app.ts b/packages/app-renderer/src/MainWindow/redux/thunks/thunks.app.ts index 0f9dd736..72fe7c56 100644 --- a/packages/app-renderer/src/MainWindow/redux/thunks/thunks.app.ts +++ b/packages/app-renderer/src/MainWindow/redux/thunks/thunks.app.ts @@ -2,7 +2,7 @@ import { appAPI } from 'src/apis'; import { _actions } from '../actions'; -import { createMainThunk } from './createMainThunk'; +import { createMainThunk } from './createThunk'; export const prepareAppDetails = createMainThunk(async (dispatch) => { const appDetails = await appAPI.getAppDetails();