EmptyPage: convert to TSX

next
Alex Gleason 2 years ago
parent 81f4fb0125
commit fc77faac5a
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -1,24 +0,0 @@
import React from 'react';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { Layout } from '../components/ui';
export default class DefaultPage extends ImmutablePureComponent {
render() {
const { children } = this.props;
return (
<Layout>
<Layout.Sidebar />
<Layout.Main>
{children}
</Layout.Main>
<Layout.Aside />
</Layout>
);
}
}

@ -0,0 +1,19 @@
import React from 'react';
import { Layout } from '../components/ui';
const EmptyPage: React.FC = ({ children }) => {
return (
<Layout>
<Layout.Sidebar />
<Layout.Main>
{children}
</Layout.Main>
<Layout.Aside />
</Layout>
);
};
export default EmptyPage;
Loading…
Cancel
Save