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:
parent
4f21b5d4d7
commit
621cc76e4a
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user