tachybase_todo/packages/client/src/components/auth-layout/index.tsx
2021-08-25 22:05:53 +08:00

18 lines
527 B
TypeScript

import { Card } from 'antd';
import React from 'react';
import { useLocation, useHistory } from 'react-router-dom';
import { SystemSettingsProvider } from '../admin-layout/SiteTitle';
export function AuthLayout({ children, route }: any) {
const location = useLocation();
const history = useHistory();
return (
<div style={{ maxWidth: 320, margin: '0 auto', paddingTop: '20vh' }}>
<h1>NocoBase</h1>
<SystemSettingsProvider>{children}</SystemSettingsProvider>
</div>
);
}
export default AuthLayout;