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

16 lines
361 B
TypeScript
Raw Normal View History

2021-07-12 22:13:48 +08:00
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;