PLT-4606: Date separator in RHS (#5606)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
242d2cec1b
Коммит
a1994cf7ce
27
webapp/components/post_view/components/date_separator.jsx
Обычный файл
27
webapp/components/post_view/components/date_separator.jsx
Обычный файл
@@ -0,0 +1,27 @@
|
||||
import React from 'react';
|
||||
import {FormattedDate} from 'react-intl';
|
||||
|
||||
export default class DateSeparator extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div
|
||||
className='date-separator'
|
||||
>
|
||||
<hr className='separator__hr'/>
|
||||
<div className='separator__text'>
|
||||
<FormattedDate
|
||||
value={this.props.date}
|
||||
weekday='short'
|
||||
month='short'
|
||||
day='2-digit'
|
||||
year='numeric'
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
DateSeparator.propTypes = {
|
||||
date: React.PropTypes.instanceOf(Date)
|
||||
};
|
||||
Ссылка в новой задаче
Block a user