[www] App component refactoring
This commit is contained in:
1 parent
89a5a192c9
commit
5b66c90b60
2 files changed
+10
-6
No files matched your search
@@ -1,12 +1,7 @@
|
|||||||
const React = require('react')
|
const React = require('react')
|
||||||
const Menu = require('./Menu')
|
const Menu = require('./Menu')
|
||||||
const Footer = require('./Footer')
|
const Footer = require('./Footer')
|
||||||
|
const Comments = require('./Comments')
|
||||||
const Comments = () => (
|
|
||||||
<div className="content content_thin">
|
|
||||||
<div id="disqus_thread"></div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
|
|
||||||
const App = ({children, menu, showAuthor, menuPadding}) => (
|
const App = ({children, menu, showAuthor, menuPadding}) => (
|
||||||
<div className="body-wrapper theme-default">
|
<div className="body-wrapper theme-default">
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
const React = require('react')
|
||||||
|
|
||||||
|
const Comments = ({contentClass = 'content_thin'}) => (
|
||||||
|
<div className={`content ${contentClass}`}>
|
||||||
|
<div id="disqus_thread"/>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
|
||||||
|
module.exports = Comments
|
||||||
Reference in new issue
Block a user