diff --git a/src/renderer/component/fileCard/view.jsx b/src/renderer/component/fileCard/view.jsx index 1e23ad092..faf1d2eef 100644 --- a/src/renderer/component/fileCard/view.jsx +++ b/src/renderer/component/fileCard/view.jsx @@ -1,19 +1,17 @@ // @flow import * as React from 'react'; import { normalizeURI } from 'lbryURI'; +import Button from 'component/button'; import CardMedia from 'component/cardMedia'; import TruncatedText from 'component/common/truncated-text'; import Icon from 'component/common/icon'; import FilePrice from 'component/filePrice'; import UriIndicator from 'component/uriIndicator'; -import NsfwOverlay from 'component/nsfwOverlay'; import * as icons from 'constants/icons'; import classnames from 'classnames'; // TODO: iron these out type Props = { - isResolvingUri: boolean, - resolveUri: string => void, uri: string, claim: ?{ claim_id: string }, fileInfo: ?{}, @@ -78,22 +76,41 @@ class FileCard extends React.PureComponent {
{showPrice && }
-
-
- {title} + {shouldObscureNsfw ? ( +
+
+ + {__('This content is obscured because it is NSFW. You can change this in ')} +
-
- {pending ? ( -
Pending...
- ) : ( - - - {isRewardContent && } - {fileInfo && } - - )} + ) : ( +
+
+ {title} +
+
+ {pending ? ( +
Pending...
+ ) : ( + + + {isRewardContent && } + {fileInfo && } + + )} +
-
+ )} ); /* eslint-enable jsx-a11y/click-events-have-key-events */