|
@@ -1,4 +1,4 @@
|
|
|
-import React, { type JSX, useCallback, useEffect, useState } from 'react';
|
|
|
|
|
|
|
+import { useCallback, useEffect, useState } from 'react';
|
|
|
import { PresetThemes, PresetThemesMetadatas } from '@growi/preset-themes';
|
|
import { PresetThemes, PresetThemesMetadatas } from '@growi/preset-themes';
|
|
|
import { useTranslation } from 'next-i18next';
|
|
import { useTranslation } from 'next-i18next';
|
|
|
|
|
|
|
@@ -8,10 +8,7 @@ import { useSWRxGrowiThemeSetting } from '~/stores/admin/customize';
|
|
|
import AdminUpdateButtonRow from '../Common/AdminUpdateButtonRow';
|
|
import AdminUpdateButtonRow from '../Common/AdminUpdateButtonRow';
|
|
|
import CustomizeThemeOptions from './CustomizeThemeOptions';
|
|
import CustomizeThemeOptions from './CustomizeThemeOptions';
|
|
|
|
|
|
|
|
-// eslint-disable-next-line @typescript-eslint/ban-types
|
|
|
|
|
-type Props = {};
|
|
|
|
|
-
|
|
|
|
|
-const CustomizeThemeSetting = (_props: Props): JSX.Element => {
|
|
|
|
|
|
|
+const CustomizeThemeSetting = (): JSX.Element => {
|
|
|
const { t } = useTranslation();
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
|
const { data, error, update } = useSWRxGrowiThemeSetting();
|
|
const { data, error, update } = useSWRxGrowiThemeSetting();
|