Skip to content

Instantly share code, notes, and snippets.

@michaltakac
Last active November 23, 2015 20:22
Show Gist options
  • Save michaltakac/1d6117da58d843d320bd to your computer and use it in GitHub Desktop.
Save michaltakac/1d6117da58d843d320bd to your computer and use it in GitHub Desktop.
Meteorboard - home page with PageHeader
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