|
@@ -433,14 +433,14 @@ export class App extends React.Component<{}, AppState> {
|
|
private renderShapesSwitcher() {
|
|
private renderShapesSwitcher() {
|
|
return (
|
|
return (
|
|
<>
|
|
<>
|
|
- {SHAPES.map(({ value, icon }) => (
|
|
|
|
|
|
+ {SHAPES.map(({ value, icon }, index) => (
|
|
<ToolIcon
|
|
<ToolIcon
|
|
key={value}
|
|
key={value}
|
|
type="radio"
|
|
type="radio"
|
|
icon={icon}
|
|
icon={icon}
|
|
checked={this.state.elementType === value}
|
|
checked={this.state.elementType === value}
|
|
name="editor-current-shape"
|
|
name="editor-current-shape"
|
|
- title={`${capitalizeString(value)} — ${capitalizeString(value)[0]}`}
|
|
|
|
|
|
+ title={`${capitalizeString(value)} — ${capitalizeString(value)[0]}, ${index + 1}`}
|
|
onChange={() => {
|
|
onChange={() => {
|
|
this.setState({ elementType: value });
|
|
this.setState({ elementType: value });
|
|
elements = clearSelection(elements);
|
|
elements = clearSelection(elements);
|