Page component update
This commit is contained in:
1 parent
0e1ac642a5
commit
244f1efd03
2 files changed
+7
-5
No files matched your search
@@ -3,10 +3,8 @@ const Share = require('./Share')
|
|||||||
const getHtml = require('../lib/component').getHtml
|
const getHtml = require('../lib/component').getHtml
|
||||||
|
|
||||||
const Page = ({children, shareable}) => (
|
const Page = ({children, shareable}) => (
|
||||||
<div className="content content_thin">
|
<div className="cloud-page__body">
|
||||||
<div className="cloud-page__body">
|
{getHtml(children)}
|
||||||
{getHtml(children)}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{!shareable ? null : (
|
{!shareable ? null : (
|
||||||
<Share/>
|
<Share/>
|
||||||
|
|||||||
+5
-1
@@ -19,7 +19,11 @@ function getPageMeta(page) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getComponent(page) {
|
function getComponent(page) {
|
||||||
return <Page shareable={true}>{page.data}</Page>
|
return (
|
||||||
|
<div className="content content_thin">
|
||||||
|
<Page shareable={true}>{page.data}</Page>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = function () {
|
module.exports = function () {
|
||||||
|
|||||||
Reference in new issue
Block a user