mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
fixed est time display
This commit is contained in:
parent
ecda809492
commit
acc7cf6a22
5 changed files with 88 additions and 12 deletions
|
@ -42,9 +42,16 @@ export class EditorPanel extends React.PureComponent {
|
|||
|
||||
<div className="panel right">
|
||||
<div className="control-dist">
|
||||
{totalDistance} км
|
||||
{
|
||||
(estimateTime > 0) && (estimateTime > 0) && <span>{toHours(estimateTime)}</span>
|
||||
{(totalDistance > 0)
|
||||
?
|
||||
<React.Fragment>
|
||||
{totalDistance} км
|
||||
<Icon icon="icon-cycle" size={32} />
|
||||
{
|
||||
(estimateTime > 0) && (estimateTime > 0) && <span>{toHours(estimateTime)}</span>
|
||||
}
|
||||
</React.Fragment>
|
||||
: <div>Начните рисовать --></div>
|
||||
}
|
||||
</div>
|
||||
<div className="control-bar">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue