mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-18 14:41:41 +03:00
7207d98c7a
Fixes #252 In order to remove duplication for the TopNavbar and the TagsSidebar on these pages we need a base Layout component. This PR eliminates the duplication we were seeing before. Co-authored-by: Michael Curry <michael.curry@thebeansgroup.com>
17 lines
379 B
JavaScript
17 lines
379 B
JavaScript
import React from 'react'
|
|
import TopNavbar from './TopNavbar'
|
|
import TagsSidebar from './TagsSidebar'
|
|
import './Layout.css'
|
|
|
|
const Layout = ({ user, activeTag, children }) => (
|
|
<div className='layout-root'>
|
|
<TopNavbar user={user} />
|
|
<div className='layout-content'>
|
|
<TagsSidebar active={activeTag} />
|
|
{children}
|
|
</div>
|
|
</div>
|
|
)
|
|
|
|
export default Layout
|