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