1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

Use template strings to join two strings together instead of join()

This commit is contained in:
Brett Sun 2016-01-18 11:37:11 +01:00
parent 4f21b5d4d7
commit 621cc76e4a
5 changed files with 5 additions and 5 deletions

View File

@ -92,7 +92,7 @@ let EditionContainer = React.createClass({
const { actionPanelButtonListType, furtherDetailsType } = this.props;
if (edition.id) {
setDocumentTitle([edition.artist_name, edition.title].join(', '));
setDocumentTitle(`${edition.artist_name}, ${edition.title}`);
return (
<Edition

View File

@ -255,7 +255,7 @@ let PieceContainer = React.createClass({
const { currentUser, piece } = this.state;
if (piece.id) {
setDocumentTitle([piece.artist_name, piece.title].join(', '));
setDocumentTitle(`${piece.artist_name}, ${piece.title}`);
return (
<Piece

View File

@ -137,7 +137,7 @@ let PrizePieceContainer = React.createClass({
setDocumentTitle(piece.title);
} else {
artistName = piece.artist_name;
setDocumentTitle([artistName, piece.title].join(', '));
setDocumentTitle(`${artistName}, ${piece.title}`);
}
// Only show the artist email if you are a judge and the piece is shortlisted

View File

@ -95,7 +95,7 @@ let CylandPieceContainer = React.createClass({
const { piece } = this.state;
if (piece.id) {
setDocumentTitle([piece.artist_name, piece.title].join(', '));
setDocumentTitle(`${piece.artist_name}, ${piece.title}`);
return (
<WalletPieceContainer

View File

@ -121,7 +121,7 @@ let IkonotvPieceContainer = React.createClass({
}
if (piece.id) {
setDocumentTitle([piece.artist_name, piece.title].join(', '));
setDocumentTitle(`${piece.artist_name}, ${piece.title}`);
return (
<WalletPieceContainer