scinote-web/app/javascript/packs/shared/navigation/components/ActivityDateElement.jsx

23 lines
410 B
React
Raw Normal View History

2017-08-02 23:27:05 +08:00
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;