map_list: fixed setting initial data

This commit is contained in:
muerwre 2018-12-06 12:01:35 +07:00
parent 0c51dc44df
commit 3d718b5a2c
4 changed files with 5 additions and 9 deletions

View file

@ -26,13 +26,10 @@ export const RouteRow = ({
<Icon icon="icon-link-1" />
{_id}
</span>
</div>
<div className="route-description">
<span>
<Icon icon="icon-cycle-1" />
{(distance && `${distance} km`) || '0 km'}
</span>
</div>
</div>
);

View file

@ -13,22 +13,16 @@ import { setMode, startEditing, stopEditing, setLogo, takeAShot } from '$redux/u
import type { UserType } from '$constants/types';
type Props = {
user: UserType,
editing: false,
mode: String,
changed: Boolean,
distance: Number,
title: String,
address: String,
logo: String,
routerPoints: Number,
activeSticker: String,
estimated: Number, // todo: implement!
setMode: Function,
startEditing: Function,
stopEditing: Function,
setLogo: Function,
takeAShot: Function,
}