File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/components/containers Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class ImageAccordion extends Component {
1717 const content =
1818 images . length &&
1919 images . map ( ( img , i ) => (
20- < ImageFold key = { i } imageIndex = { i } name = { img . text } canDelete = { canAdd } >
20+ < ImageFold key = { i } imageIndex = { i } name = { ` ${ _ ( 'Image' ) } ${ i + 1 } ` } canDelete = { canAdd } >
2121 { children }
2222 </ ImageFold >
2323 ) ) ;
@@ -34,7 +34,6 @@ class ImageAccordion extends Component {
3434
3535 const key = `images[${ imageIndex } ]` ;
3636 const value = {
37- text : `${ _ ( 'Image' ) } ${ imageIndex + 1 } ` ,
3837 sizex : 0.1 ,
3938 sizey : 0.1 ,
4039 x : 0.5 ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class ShapeAccordion extends Component {
1818 const content =
1919 shapes . length &&
2020 shapes . map ( ( shp , i ) => (
21- < ShapeFold key = { i } shapeIndex = { i } name = { shp . text } canDelete = { canAdd } >
21+ < ShapeFold key = { i } shapeIndex = { i } name = { ` ${ _ ( 'Shape' ) } ${ i + 1 } ` } canDelete = { canAdd } >
2222 { children }
2323 </ ShapeFold >
2424 ) ) ;
@@ -35,7 +35,6 @@ class ShapeAccordion extends Component {
3535
3636 const key = `shapes[${ shapeIndex } ]` ;
3737 const value = {
38- text : `${ _ ( 'Shape' ) } ${ shapeIndex } ` ,
3938 line : { color : COLORS . charcoal } ,
4039 fillcolor : COLORS . middleGray ,
4140 opacity : 0.3 ,
You can’t perform that action at this time.
0 commit comments