Show prices on Published page

This commit is contained in:
Alex Liebowitz 2017-01-17 05:19:09 -05:00
parent 88d4c49d9a
commit 8fdfd4b60e

View file

@ -55,7 +55,7 @@ export let FileListDownloaded = React.createClass({
} else { } else {
return ( return (
<main className="page"> <main className="page">
<FileList fileInfos={this.state.fileInfos} /> <FileList fileInfos={this.state.fileInfos} hidePrices={true} />
</main> </main>
); );
} }
@ -149,7 +149,13 @@ export let FileList = React.createClass({
}, },
}, },
propTypes: { propTypes: {
fileInfos: React.PropTypes.array.isRequired fileInfos: React.PropTypes.array.isRequired,
hidePrices: React.PropTypes.bool,
},
getDefaultProps: function() {
return {
hidePrices: false,
};
}, },
getInitialState: function() { getInitialState: function() {
return { return {
@ -174,7 +180,8 @@ export let FileList = React.createClass({
} }
seenUris[lbry_uri] = true; seenUris[lbry_uri] = true;
content.push(<FileTileStream key={lbry_uri} name={lbry_uri} hideOnRemove={true} sdHash={sd_hash} hidePrice={true} metadata={metadata} />); content.push(<FileTileStream key={lbry_uri} name={lbry_uri} hideOnRemove={true} sdHash={sd_hash}
hidePrice={this.props.hidePrices} metadata={metadata} />);
} }
return ( return (