App component refactoring

This commit is contained in:
tmshv committed 2019-08-05 15:43:33 +03:00
1 parent 6a87513703
commit 55406b2b18
11 files changed
+15 -17

No files matched your search

+5 -7
View File
@@ -1,11 +1,11 @@
const React = require('react')
const Menu = require('./Menu')
const Footer = require('./Footer')
const Comments = require('./Comments')
import React from 'react'
import Menu from './Menu'
import Footer from './Footer'
import Comments from './Comments'
import '../style/style.scss'
const App = ({children, menu, showAuthor, menuPadding}) => (
export const App = ({children, menu, showAuthor, menuPadding}) => (
<div className="body-wrapper theme-default">
<header>
<div className="navigation">
@@ -30,5 +30,3 @@ const App = ({children, menu, showAuthor, menuPadding}) => (
/>
</div>
)
module.exports = App