mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
sticker panel with ability to choose
This commit is contained in:
parent
40a11297c0
commit
f2c9cc4abc
10 changed files with 140 additions and 64 deletions
|
@ -18,7 +18,7 @@ export class EditorPanel extends React.PureComponent {
|
|||
|
||||
render() {
|
||||
const {
|
||||
mode, routerPoints, editor, totalDistance, estimateTime
|
||||
mode, routerPoints, editor, totalDistance, estimateTime, activeSticker
|
||||
} = this.props;
|
||||
|
||||
return (
|
||||
|
@ -27,6 +27,7 @@ export class EditorPanel extends React.PureComponent {
|
|||
<EditorDialog
|
||||
mode={mode}
|
||||
routerPoints={routerPoints}
|
||||
activeSticker={activeSticker}
|
||||
editor={editor}
|
||||
/>
|
||||
|
||||
|
@ -44,14 +45,14 @@ export class EditorPanel extends React.PureComponent {
|
|||
<div className="control-dist">
|
||||
{(totalDistance > 0)
|
||||
?
|
||||
<React.Fragment>
|
||||
{totalDistance} км
|
||||
<Icon icon="icon-cycle" size={32} />
|
||||
{
|
||||
(estimateTime > 0) && (estimateTime > 0) && <span>{toHours(estimateTime)}</span>
|
||||
}
|
||||
</React.Fragment>
|
||||
: <div onClick={() => editor.changeMode(MODES.ROUTER)}>Начнать рисовать</div>
|
||||
<React.Fragment>
|
||||
{totalDistance} км
|
||||
<Icon icon="icon-cycle" size={32} />
|
||||
{
|
||||
(estimateTime > 0) && (estimateTime > 0) && <span>{toHours(estimateTime)}</span>
|
||||
}
|
||||
</React.Fragment>
|
||||
: <div onClick={() => editor.changeMode(MODES.ROUTER)}>Начать рисовать</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue