Start rendering messages with something more than the json
This commit is contained in:
parent
88e9ab02f9
commit
672258f604
5 changed files with 68 additions and 2 deletions
13
src/atoms/MessageTimestamp.js
Normal file
13
src/atoms/MessageTimestamp.js
Normal 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>
|
||||
);
|
||||
},
|
||||
});
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue