mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-24 18:46:40 +07:00
hiding buttons on short route
This commit is contained in:
parent
02e570bc9c
commit
947ec69e60
1 changed files with 2 additions and 0 deletions
|
@ -79,6 +79,7 @@ const PolylineDialogUnconnected: FC<Props> = ({
|
|||
|
||||
<button
|
||||
className={classNames('helper__icon_button', {
|
||||
inactive: route.length < 2,
|
||||
active: direction === DRAWING_DIRECTIONS.BACKWARDS,
|
||||
})}
|
||||
onClick={continueBackward}
|
||||
|
@ -88,6 +89,7 @@ const PolylineDialogUnconnected: FC<Props> = ({
|
|||
|
||||
<button
|
||||
className={classNames('helper__icon_button', {
|
||||
inactive: route.length < 2,
|
||||
active: direction === DRAWING_DIRECTIONS.FORWARDS,
|
||||
})}
|
||||
onClick={continueForward}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue