tachybase_todo/packages/client/src/components/auth-layout/index.tsx
2021-07-12 22:13:48 +08:00

16 lines
361 B
TypeScript

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