mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 15:13:21 +08:00
22 lines
410 B
JavaScript
22 lines
410 B
JavaScript
import React from "react";
|
|
import PropTypes from "prop-types";
|
|
import { FormattedDate } from "react-intl";
|
|
|
|
const ActivityDateElement = ({ date }) => {
|
|
return (
|
|
<li className="data-element">
|
|
<FormattedDate
|
|
value={date}
|
|
day="2-digit"
|
|
month="2-digit"
|
|
year="numeric"
|
|
/>
|
|
</li>
|
|
);
|
|
};
|
|
|
|
ActivityDateElement.propTypes = {
|
|
|
|
}
|
|
|
|
export default ActivityDateElement;
|