Last active
November 23, 2015 20:22
-
-
Save michaltakac/1d6117da58d843d320bd to your computer and use it in GitHub Desktop.
Meteorboard - home page with PageHeader
This file contains hidden or 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
import Component from 'react-pure-render/component'; | |
import {Row, Col, Panel, Table} from 'react-bootstrap'; | |
import React, {PropTypes} from 'react'; | |
import PageHeader from '../components/PageHeader.react'; | |
export default class Page extends Component { | |
static propTypes = { | |
// Why not PropTypes.object.isRequired? Because: | |
// https://github.com/rackt/react-router/issues/1505 | |
msg: PropTypes.object | |
} | |
render() { | |
const {msg: {home: msg}} = this.props; | |
return ( | |
<div> | |
<Row> | |
<PageHeader description={msg.description} menu={msg.menu} title={msg.title} /> | |
</Row> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment