WNomunomu 1 год назад
Родитель
Сommit
25652ed3c3
1 измененных файлов с 0 добавлено и 21 удалено
  1. 0 21
      apps/app/src/stores/security-setting.ts

+ 0 - 21
apps/app/src/stores/security-setting.ts

@@ -1,21 +0,0 @@
-import type { SWRResponse } from 'swr';
-import useSWRImmutable from 'swr/immutable';
-
-import { apiv3Get } from '~/client/util/apiv3-client';
-
-
-// const response = await apiv3Get('/security-setting/');
-// const { generalSetting, shareLinkSetting, generalAuth } = response.data.securityParams;
-
-export const useSecuritySettings = (): SWRResponse => {
-  const swrResponse = useSWRImmutable(
-    '/security-setting/',
-    (endpoint) => {
-      return apiv3Get(endpoint).then(response => response.data.securityParams);
-    },
-  );
-
-  return {
-    ...swrResponse,
-  };
-};