Merge pull request #1972 from lbryio/fileCard
remove position icon from FileCard
This commit is contained in:
commit
8502fef2b9
1 changed files with 1 additions and 8 deletions
|
@ -1,6 +1,5 @@
|
||||||
// @flow
|
// @flow
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import moment from 'moment';
|
|
||||||
import { normalizeURI, convertToShareLink } from 'lbry-redux';
|
import { normalizeURI, convertToShareLink } from 'lbry-redux';
|
||||||
import type { Claim, Metadata } from 'types/claim';
|
import type { Claim, Metadata } from 'types/claim';
|
||||||
import CardMedia from 'component/cardMedia';
|
import CardMedia from 'component/cardMedia';
|
||||||
|
@ -12,7 +11,6 @@ import classnames from 'classnames';
|
||||||
import FilePrice from 'component/filePrice';
|
import FilePrice from 'component/filePrice';
|
||||||
import { openCopyLinkMenu } from 'util/contextMenu';
|
import { openCopyLinkMenu } from 'util/contextMenu';
|
||||||
|
|
||||||
// TODO: iron these out
|
|
||||||
type Props = {
|
type Props = {
|
||||||
uri: string,
|
uri: string,
|
||||||
claim: ?Claim,
|
claim: ?Claim,
|
||||||
|
@ -23,12 +21,10 @@ type Props = {
|
||||||
obscureNsfw: boolean,
|
obscureNsfw: boolean,
|
||||||
claimIsMine: boolean,
|
claimIsMine: boolean,
|
||||||
pending?: boolean,
|
pending?: boolean,
|
||||||
position: ?number,
|
|
||||||
lastViewed: ?number,
|
|
||||||
clearHistoryUri: string => void,
|
|
||||||
/* eslint-disable react/no-unused-prop-types */
|
/* eslint-disable react/no-unused-prop-types */
|
||||||
resolveUri: string => void,
|
resolveUri: string => void,
|
||||||
isResolvingUri: boolean,
|
isResolvingUri: boolean,
|
||||||
|
showPrice: boolean,
|
||||||
/* eslint-enable react/no-unused-prop-types */
|
/* eslint-enable react/no-unused-prop-types */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -63,8 +59,6 @@ class FileCard extends React.PureComponent<Props> {
|
||||||
obscureNsfw,
|
obscureNsfw,
|
||||||
claimIsMine,
|
claimIsMine,
|
||||||
pending,
|
pending,
|
||||||
position,
|
|
||||||
clearHistoryUri,
|
|
||||||
showPrice,
|
showPrice,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
|
@ -108,7 +102,6 @@ class FileCard extends React.PureComponent<Props> {
|
||||||
{showPrice && <FilePrice hideFree uri={uri} />}
|
{showPrice && <FilePrice hideFree uri={uri} />}
|
||||||
{isRewardContent && <Icon iconColor="red" icon={icons.FEATURED} />}
|
{isRewardContent && <Icon iconColor="red" icon={icons.FEATURED} />}
|
||||||
{fileInfo && <Icon icon={icons.LOCAL} />}
|
{fileInfo && <Icon icon={icons.LOCAL} />}
|
||||||
{position && <Icon icon={icons.REFRESH} />}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in a new issue