mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
delete dialog
This commit is contained in:
parent
21532ba240
commit
cb3fabaf74
9 changed files with 85 additions and 29 deletions
|
@ -16,7 +16,7 @@ export class EditorPanel extends React.PureComponent {
|
|||
|
||||
startShotterMode = () => this.props.editor.changeMode(MODES.SHOTTER);
|
||||
|
||||
clearAll = () => this.props.editor.clearAll();
|
||||
startTrashMode = () => this.props.editor.changeMode(MODES.TRASH);
|
||||
|
||||
render() {
|
||||
const {
|
||||
|
@ -92,7 +92,7 @@ export class EditorPanel extends React.PureComponent {
|
|||
|
||||
<button
|
||||
className={classnames({ active: mode === MODES.TRASH })}
|
||||
onClick={this.clearAll}
|
||||
onClick={this.startTrashMode}
|
||||
>
|
||||
<Icon icon="icon-trash" />
|
||||
</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue