From 5b66c90b60151835c8eb4a8d4c2b72114e8c14f7 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Sat, 14 Oct 2017 11:28:18 +0300 Subject: [PATCH] [www] App component refactoring --- src/components/App.js | 7 +------ src/components/Comments.js | 9 +++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 src/components/Comments.js diff --git a/src/components/App.js b/src/components/App.js index 95857b9b..b990e38e 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -1,12 +1,7 @@ const React = require('react') const Menu = require('./Menu') const Footer = require('./Footer') - -const Comments = () => ( -
-
-
-) +const Comments = require('./Comments') const App = ({children, menu, showAuthor, menuPadding}) => (
diff --git a/src/components/Comments.js b/src/components/Comments.js new file mode 100644 index 00000000..252338bf --- /dev/null +++ b/src/components/Comments.js @@ -0,0 +1,9 @@ +const React = require('react') + +const Comments = ({contentClass = 'content_thin'}) => ( +
+
+
+) + +module.exports = Comments