Start rendering messages with something more than the json

This commit is contained in:
David Baker 2015-06-16 11:58:03 +01:00
parent 88e9ab02f9
commit 672258f604
5 changed files with 68 additions and 2 deletions

View file

@ -0,0 +1,13 @@
var React = require('react');
module.exports = React.createClass({
render: function() {
var date = new Date(this.props.ts);
return (
<span className="mx_MessageTimestamp">
{date.toLocaleTimeString()}
</span>
);
},
});