Yuken Tezuka пре 3 година
родитељ
комит
ec3ac3ca35
2 измењених фајлова са 5 додато и 5 уклоњено
  1. 4 0
      packages/app/src/interfaces/admin.ts
  2. 1 5
      packages/app/src/stores/admin/customize.tsx

+ 4 - 0
packages/app/src/interfaces/admin.ts

@@ -0,0 +1,4 @@
+
+export interface updateConfigMethodForAdmin<T> {
+  update: (arg: T) => void
+}

+ 1 - 5
packages/app/src/stores/admin/customize.tsx

@@ -3,13 +3,9 @@ import { useCallback } from 'react';
 import useSWR, { SWRResponse } from 'swr';
 
 import { apiv3Get, apiv3Put } from '~/client/util/apiv3-client';
+import { updateConfigMethodForAdmin } from '~/interfaces/admin';
 import { IResLayoutSetting } from '~/interfaces/customize';
 
-interface updateConfigMethodForAdmin<T> {
-  update: (arg: T) => void
-}
-
-
 export const useSWRxLayoutSetting = (): SWRResponse<IResLayoutSetting, Error> & updateConfigMethodForAdmin<IResLayoutSetting> => {
 
   const fetcher = useCallback(async() => {