|
|
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
|
import { withTranslation } from 'react-i18next';
|
|
|
+import dateFnsFormat from 'date-fns/format';
|
|
|
|
|
|
import { withUnstatedContainers } from './UnstatedUtils';
|
|
|
|
|
|
@@ -27,7 +28,7 @@ const ShareLinkList = (props) => {
|
|
|
<span>{shareLink._id}</span>
|
|
|
<CopyDropdown isShareLinkMode="true" shareLinkId={shareLink._id} pageId={shareLink.relatedPage} />
|
|
|
</td>
|
|
|
- <td>{shareLink.expiredAt}</td>
|
|
|
+ <td>{shareLink.expiredAt && <span>{dateFnsFormat(new Date(shareLink.expiredAt), 'yyyy-MM-dd HH:mm')}</span>}</td>
|
|
|
<td>{shareLink.description}</td>
|
|
|
<td>
|
|
|
<button className="btn btn-outline-warning" type="button" onClick={() => deleteLinkHandler(shareLink._id)}>
|