-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(AppLayout): implement App Layout
- Loading branch information
1 parent
3180d31
commit dbb15be
Showing
6 changed files
with
37 additions
and
71 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React, { PropTypes } from 'react' | ||
import { Link } from 'react-router' | ||
import Helmet from 'react-helmet' | ||
|
||
import config from '../../config' | ||
|
||
const propTypes = { | ||
children: PropTypes.object | ||
} | ||
|
||
function AppLayout(props) { | ||
return ( | ||
<div className="views"> | ||
<Helmet {...config.app} /> | ||
|
||
<h1>{config.app.title}</h1> | ||
|
||
<ul> | ||
<li><Link to="/">Home</Link></li> | ||
<li><Link to="/hello">Hello</Link></li> | ||
<li><Link to="/about">About</Link></li> | ||
</ul> | ||
|
||
{props.children} | ||
</div> | ||
) | ||
} | ||
|
||
AppLayout.propTypes = propTypes | ||
|
||
export default AppLayout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// *** GLOBAL STYLES *** // | ||
import 'common/styles/global/app.scss' | ||
|
||
import AppLayout from './AppLayout' | ||
|
||
export default AppLayout |