chore(admin): organize massive routes (#7857)

This commit is contained in:
forehalo
2024-08-14 03:34:38 +00:00
parent 0ba516866f
commit 015247345c
10 changed files with 187 additions and 210 deletions
@@ -6,7 +6,6 @@ import { CheckIcon } from 'lucide-react';
import type { Dispatch, SetStateAction } from 'react';
import { useCallback, useMemo, useState } from 'react';
import { Layout } from '../layout';
import { useNav } from '../nav/context';
import { ConfirmChanges } from './confirm-changes';
import { RuntimeSettingRow } from './runtime-setting-row';
@@ -25,10 +24,6 @@ export type ModifiedValues = {
newValue: any;
};
export function Settings() {
return <Layout content={<SettingsPage />} />;
}
export function SettingsPage() {
const { trigger } = useUpdateServerRuntimeConfigs();
const { serverRuntimeConfig } = useGetServerRuntimeConfig();
@@ -190,4 +185,4 @@ export const AdminPanel = ({
);
};
export { Settings as Component };
export { SettingsPage as Component };