mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
panel buttons tooltips
This commit is contained in:
parent
a0296f6332
commit
9321f41cd5
9 changed files with 82 additions and 12 deletions
|
@ -7,6 +7,7 @@ import Slider from 'rc-slider';
|
|||
import { bindActionCreators } from 'redux';
|
||||
import { setSpeed } from '$redux/user/actions';
|
||||
import { IRootState } from "$redux/user/reducer";
|
||||
import { Tooltip } from "$components/panels/Tooltip";
|
||||
|
||||
interface Props extends IRootState {
|
||||
setSpeed: typeof setSpeed,
|
||||
|
@ -45,8 +46,9 @@ class Component extends React.PureComponent<Props, State> {
|
|||
|
||||
return (
|
||||
<React.Fragment>
|
||||
<div className="status-bar padded desktop-only pointer" onClick={this.toggleDialog}>
|
||||
<div className="status-bar padded desktop-only pointer tooltip-container" onClick={this.toggleDialog}>
|
||||
{distance} км
|
||||
<Tooltip position="top">Примерное время</Tooltip>
|
||||
<Icon icon="icon-cycle" size={32} />
|
||||
{
|
||||
<span>{toHours(estimated)}</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue