mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 19:46:32 +08:00
chore(admin): organize massive routes (#7857)
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
import { Navigate } from 'react-router-dom';
|
||||
|
||||
import { useServerConfig } from '../common';
|
||||
import { Form } from './form';
|
||||
import logo from './logo.svg';
|
||||
|
||||
export function Setup() {
|
||||
const config = useServerConfig();
|
||||
|
||||
if (config.initialized) {
|
||||
return <Navigate to="/admin" />;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="w-full lg:grid lg:grid-cols-2 h-screen">
|
||||
<div className="flex items-center justify-center py-12 h-full">
|
||||
|
||||
Reference in New Issue
Block a user