hiding buttons on short route

This commit is contained in:
Fedor Katurov 2020-01-22 17:01:51 +07:00
parent 02e570bc9c
commit 947ec69e60

View file

@ -79,6 +79,7 @@ const PolylineDialogUnconnected: FC<Props> = ({
<button <button
className={classNames('helper__icon_button', { className={classNames('helper__icon_button', {
inactive: route.length < 2,
active: direction === DRAWING_DIRECTIONS.BACKWARDS, active: direction === DRAWING_DIRECTIONS.BACKWARDS,
})} })}
onClick={continueBackward} onClick={continueBackward}
@ -88,6 +89,7 @@ const PolylineDialogUnconnected: FC<Props> = ({
<button <button
className={classNames('helper__icon_button', { className={classNames('helper__icon_button', {
inactive: route.length < 2,
active: direction === DRAWING_DIRECTIONS.FORWARDS, active: direction === DRAWING_DIRECTIONS.FORWARDS,
})} })}
onClick={continueForward} onClick={continueForward}