mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-16 23:08:44 +00:00
refactor the nav into the pages
This commit is contained in:
@@ -5,6 +5,7 @@ import moment from 'moment';
|
||||
import _ from 'lodash';
|
||||
|
||||
import BrewItem from './brewItem/brewItem.jsx';
|
||||
import Navbar from '../../../navbar/navbar.jsx';
|
||||
|
||||
const USERPAGE_SORT_DIR = 'HB_listPage_sortDir';
|
||||
const USERPAGE_SORT_TYPE = 'HB_listPage_sortType';
|
||||
@@ -328,7 +329,7 @@ const ListPage = ({ brewCollection = [{ title: '', class: '', brews: [] }], navI
|
||||
|
||||
return (
|
||||
<div className='listPage sitePage'>
|
||||
{navItems}
|
||||
<Navbar>{navItems}</Navbar>
|
||||
|
||||
{renderNav()}
|
||||
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import './uiPage.less';
|
||||
import React from 'react';
|
||||
import createReactClass from 'create-react-class';
|
||||
import Navbar from '../../../navbar/navbar.jsx';
|
||||
|
||||
const UIPage = createReactClass({
|
||||
displayName : 'UIPage',
|
||||
|
||||
render : function(){
|
||||
return <div className='uiPage sitePage'>
|
||||
|
||||
<Navbar/>
|
||||
<div className='content'>
|
||||
{this.props.children}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user