EmptyPage: convert to TSX
This commit is contained in:
parent
81f4fb0125
commit
fc77faac5a
2 changed files with 19 additions and 24 deletions
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
}
|
19
app/soapbox/pages/empty_page.tsx
Normal file
19
app/soapbox/pages/empty_page.tsx
Normal file
|
@ -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…
Reference in a new issue