Show prices on Published page
This commit is contained in:
parent
88d4c49d9a
commit
8fdfd4b60e
1 changed files with 10 additions and 3 deletions
|
@ -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 (
|
||||||
|
|
Loading…
Add table
Reference in a new issue