diff --git a/src/renderer/component/fileCard/view.jsx b/src/renderer/component/fileCard/view.jsx index ad95f0053..7d235d19f 100644 --- a/src/renderer/component/fileCard/view.jsx +++ b/src/renderer/component/fileCard/view.jsx @@ -1,5 +1,6 @@ // @flow import * as React from 'react'; +import moment from 'moment'; import { normalizeURI, convertToShareLink } from 'lbry-redux'; import type { Claim, Metadata } from 'types/claim'; import CardMedia from 'component/cardMedia'; @@ -24,6 +25,7 @@ type Props = { showPrice: boolean, pending?: boolean, position: ?number, + lastViewed: ?number, /* eslint-disable react/no-unused-prop-types */ resolveUri: string => void, isResolvingUri: boolean, @@ -63,6 +65,7 @@ class FileCard extends React.PureComponent { showPrice, pending, position, + lastViewed, } = this.props; const shouldHide = !claimIsMine && !pending && obscureNsfw && metadata && metadata.nsfw; @@ -107,6 +110,9 @@ class FileCard extends React.PureComponent { {fileInfo && } {position && } + {lastViewed && ( +
{moment(lastViewed).from(moment())}
+ )} ); diff --git a/src/renderer/page/userHistory/view.jsx b/src/renderer/page/userHistory/view.jsx index 13b9efc50..ed5a32a11 100644 --- a/src/renderer/page/userHistory/view.jsx +++ b/src/renderer/page/userHistory/view.jsx @@ -47,7 +47,9 @@ class UserHistoryPage extends React.PureComponent {
{history && history.length ? ( - {history.map(item => )} + {history.map(item => ( + + ))} {pageCount > 1 && (