Add last message time to sidebar

This commit is contained in:
Thomas Nordquist
2019-01-16 00:53:18 +01:00
parent ab6938c7da
commit 3ba31de468
4 changed files with 24 additions and 7 deletions

View File

@@ -0,0 +1,14 @@
import * as React from 'react'
interface Props {
date: Date
}
class DateFormatter extends React.Component<Props, {}> {
public render() {
return <span>{this.props.date.toLocaleDateString()} {this.props.date.toLocaleTimeString()}</span>
}
}
export default DateFormatter