sforkowany z mirror/soapbox
EmptyPage: convert to TSX
rodzic
81f4fb0125
commit
fc77faac5a
|
@ -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;
|
Ładowanie…
Reference in New Issue