diff --git a/js/components/edition.js b/js/components/edition.js index 1dfa2c02..336bacff 100644 --- a/js/components/edition.js +++ b/js/components/edition.js @@ -16,8 +16,8 @@ let Edition = React.createClass({
- - + +
); @@ -34,27 +34,27 @@ let EditionHeader = React.createClass({
-
+
TITLE:
-
+
{this.props.edition.title}
-
+
BY:
-
+
{this.props.edition.artist_name}
-
+
DATE:
-
+
{ this.props.edition.date_created.slice(0,4) }
@@ -73,26 +73,26 @@ let EditionDetails = React.createClass({ return (
-
+
EDITION:
-
+
{ this.props.edition.edition_number } of {this.props.edition.num_editions}
-
+
ID:
-
+
{ this.props.edition.bitcoin_id }
-
+
OWNER:
-
+
{ this.props.edition.owner }
diff --git a/js/fetchers/edition_fetcher.js b/js/fetchers/edition_fetcher.js index 675d8682..aa6538c4 100644 --- a/js/fetchers/edition_fetcher.js +++ b/js/fetchers/edition_fetcher.js @@ -10,12 +10,14 @@ let EditionFetcher = { * If no arg is supplied, load the current user * */ - fetchOne(pieceId) { - return fetch(AppConstants.baseUrl + 'editions/' + pieceId + '/', { + fetchOne(editionId) { + return fetch(AppConstants.baseUrl + 'editions/' + editionId + '/', { headers: { 'Authorization': 'Basic ' + AppConstants.debugCredentialBase64 } - }).then((res) => res.json()); + }).then( + (res) => res.json() + ); } };