@@ -119,19 +119,23 @@ export function Image({
119119 */
120120 if ( loaderOptions ) {
121121 console . warn (
122- `Deprecated property from original Image component in use: ` +
123- `Use the \`crop\`, \`width\`, \`height\`, and src props, or ` +
122+ [
123+ `Deprecated property from original Image component in use:` ,
124+ `Use the \`crop\`, \`width\`, \`height\`, and src props, or` ,
124125 `the \`data\` prop to achieve the same result. Image used is ${
125126 src || data ?. url
126127 } `,
128+ ] . join ( ' ' ) ,
127129 ) ;
128130 }
129131
130132 if ( widths ) {
131133 console . warn (
132- `Deprecated property from original Image component in use: ` +
133- `\`widths\` are now calculated automatically based on the ` +
134+ [
135+ `Deprecated property from original Image component in use:` ,
136+ `\`widths\` are now calculated automatically based on the` ,
134137 `config and width props. Image used is ${ src || data ?. url } ` ,
138+ ] . join ( ' ' ) ,
135139 ) ;
136140 }
137141
@@ -195,9 +199,11 @@ export function Image({
195199
196200 if ( ! sizes && ! isFixedWidth ( normalizedWidth ) ) {
197201 console . warn (
198- 'No sizes prop provided to Image component, ' +
199- 'you may be loading unnecessarily large images. ' +
202+ [
203+ 'No sizes prop provided to Image component,' ,
204+ 'you may be loading unnecessarily large images.' ,
200205 `Image used is ${ src || data ?. url } ` ,
206+ ] . join ( ' ' ) ,
201207 ) ;
202208 }
203209
0 commit comments