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

View File

@@ -9,7 +9,6 @@ import { Separator } from '@affine/admin/components/ui/separator';
import { useQueryImmutable } from '@affine/core/hooks/use-query';
import { getServerServiceConfigsQuery } from '@affine/graphql';
import { Layout } from '../layout';
import { AboutAFFiNE } from './about';
type ServerConfig = {
@@ -38,10 +37,6 @@ type ServerServiceConfig = {
config: ServerConfig | MailerConfig | DatabaseConfig;
};
export function Config() {
return <Layout content={<ConfigPage />} />;
}
export function ConfigPage() {
return (
<div className=" h-screen flex-1 space-y-1 flex-col flex">
@@ -218,4 +213,4 @@ export function ServerServiceConfig() {
);
}
export { Config as Component };
export { ConfigPage as Component };