aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/components/time.react.js
blob: c293e638c5dac2b3a61d917deaf461b0740a2cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
var React = require('react');

var JarrTime = React.createClass({
    propTypes: {stamp: React.PropTypes.string.isRequired,
                text: React.PropTypes.string.isRequired},
    render: function() {
        return (<time dateTime={this.props.text} title={this.props.text}>
                    {this.props.stamp}
                </time>);
    },
});

module.exports = JarrTime;
bgstack15