diff --git a/ui/component/fileDetails/view.jsx b/ui/component/fileDetails/view.jsx index ede8f47be..48bb4aca2 100644 --- a/ui/component/fileDetails/view.jsx +++ b/ui/component/fileDetails/view.jsx @@ -1,4 +1,6 @@ // @flow +import * as PAGES from 'constants/pages'; +import * as CS from 'constants/claim_search'; import React, { Fragment, PureComponent } from 'react'; import MarkdownPreview from 'component/common/markdown-preview'; import Button from 'component/button'; @@ -56,9 +58,21 @@ class FileDetails extends PureComponent { - + + {claim && claim.meta.reposted > 0 && ( + + + + + )} {fileSize && ( diff --git a/ui/component/fileRenderHeader/index.js b/ui/component/fileRenderHeader/index.js deleted file mode 100644 index e54062ecb..000000000 --- a/ui/component/fileRenderHeader/index.js +++ /dev/null @@ -1,9 +0,0 @@ -import { connect } from 'react-redux'; -import { makeSelectClaimForUri } from 'lbry-redux'; -import ClaimUri from './view'; - -const select = (state, props) => ({ - claim: makeSelectClaimForUri(props.uri)(state), -}); - -export default connect(select)(ClaimUri); diff --git a/ui/component/fileRenderHeader/view.jsx b/ui/component/fileRenderHeader/view.jsx deleted file mode 100644 index 8872b7ad7..000000000 --- a/ui/component/fileRenderHeader/view.jsx +++ /dev/null @@ -1,32 +0,0 @@ -// @flow -import * as PAGES from 'constants/pages'; -import * as CS from 'constants/claim_search'; -import React from 'react'; -import ClaimUri from 'component/claimUri'; -import Button from 'component/button'; - -type Props = { - uri: string, - claim: ?Claim, -}; - -function FileRenderHeader(props: Props) { - const { uri, claim } = props; - - return ( -
- - - {claim && claim.meta.reposted > 0 && ( -
- ); -} - -export default FileRenderHeader; diff --git a/ui/page/file/view.jsx b/ui/page/file/view.jsx index 48ec7f67c..bbef0e85e 100644 --- a/ui/page/file/view.jsx +++ b/ui/page/file/view.jsx @@ -3,7 +3,7 @@ import * as React from 'react'; import classnames from 'classnames'; import Page from 'component/page'; import * as RENDER_MODES from 'constants/file_render_modes'; -import FileRenderHeader from 'component/fileRenderHeader'; +import ClaimUri from 'component/claimUri'; import FileTitle from 'component/fileTitle'; import FileRenderInitiator from 'component/fileRenderInitiator'; import FileRenderInline from 'component/fileRenderInline'; @@ -78,7 +78,7 @@ class FilePage extends React.Component { if (RENDER_MODES.FLOATING_MODES.includes(mode)) { return ( - +
@@ -91,7 +91,7 @@ class FilePage extends React.Component { if (RENDER_MODES.UNRENDERABLE_MODES.includes(mode)) { return ( - + @@ -101,7 +101,7 @@ class FilePage extends React.Component { if (RENDER_MODES.TEXT_MODES.includes(mode)) { return ( - + @@ -111,7 +111,7 @@ class FilePage extends React.Component { return ( - +
{__('Content Type')}{__('Content Type')} {mediaType}
{__('Reposts')} +
{__('File Size')}