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