1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-03 18:35:09 +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; const { actionPanelButtonListType, furtherDetailsType } = this.props;
if (edition.id) { if (edition.id) {
setDocumentTitle([edition.artist_name, edition.title].join(', ')); setDocumentTitle(`${edition.artist_name}, ${edition.title}`);
return ( return (
<Edition <Edition

View File

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

View File

@ -137,7 +137,7 @@ let PrizePieceContainer = React.createClass({
setDocumentTitle(piece.title); setDocumentTitle(piece.title);
} else { } else {
artistName = piece.artist_name; 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 // 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; const { piece } = this.state;
if (piece.id) { if (piece.id) {
setDocumentTitle([piece.artist_name, piece.title].join(', ')); setDocumentTitle(`${piece.artist_name}, ${piece.title}`);
return ( return (
<WalletPieceContainer <WalletPieceContainer

View File

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