mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
basic router
This commit is contained in:
parent
0d8a507620
commit
e477f50283
12 changed files with 215 additions and 15 deletions
|
@ -30,6 +30,8 @@ export class App extends React.Component {
|
|||
|
||||
startStickerMode = () => this.editor.changeMode(MODES.STICKERS);
|
||||
|
||||
startRouterMode = () => this.editor.changeMode(MODES.ROUTER);
|
||||
|
||||
render() {
|
||||
const { mode } = this.state;
|
||||
|
||||
|
@ -43,6 +45,9 @@ export class App extends React.Component {
|
|||
<button onClick={this.startStickerMode}>
|
||||
{mode === MODES.STICKERS && '-->'}{MODES.STICKERS}
|
||||
</button>
|
||||
<button onClick={this.startRouterMode}>
|
||||
{mode === MODES.ROUTER && '-->'}{MODES.ROUTER}
|
||||
</button>
|
||||
</ControlsScreen>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue