mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
chore(admin): organize massive routes (#7857)
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user