triggering on-something-changed

This commit is contained in:
muerwre 2018-09-03 17:09:00 +07:00
parent 2dab345fe8
commit 1ca2691a15
6 changed files with 35 additions and 7 deletions

View file

@ -29,7 +29,7 @@ export class EditorPanel extends React.PureComponent {
render() {
const {
mode, routerPoints, editor, totalDistance, estimateTime, activeSticker, logo, user, editing, title, address,
mode, routerPoints, editor, totalDistance, estimateTime, activeSticker, logo, user, editing, title, address, changed,
} = this.props;
return (
@ -49,6 +49,7 @@ export class EditorPanel extends React.PureComponent {
<LogoPreview logo={logo} />
<div className="control-dist">
{changed && '(ch) '}
{totalDistance} км
<Icon icon="icon-cycle" size={32} />
{