tachybase_todo/packages/client/src/components/auth-layout/index.tsx

18 lines
527 B
TypeScript
Raw Normal View History

2021-08-23 22:21:40 +08:00
import { Card } from 'antd';
2021-07-12 22:13:48 +08:00
import React from 'react';
import { useLocation, useHistory } from 'react-router-dom';
2021-08-25 22:05:53 +08:00
import { SystemSettingsProvider } from '../admin-layout/SiteTitle';
2021-07-12 22:13:48 +08:00
export function AuthLayout({ children, route }: any) {
const location = useLocation();
const history = useHistory();
return (
2021-08-23 22:21:40 +08:00
<div style={{ maxWidth: 320, margin: '0 auto', paddingTop: '20vh' }}>
2021-07-12 22:13:48 +08:00
<h1>NocoBase</h1>
2021-08-25 22:05:53 +08:00
<SystemSettingsProvider>{children}</SystemSettingsProvider>
2021-07-12 22:13:48 +08:00
</div>
);
}
export default AuthLayout;