mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 03:26:41 +07:00
fixed loading route and maps
This commit is contained in:
parent
1f774a8299
commit
62cb8d8e18
18 changed files with 715 additions and 369 deletions
|
@ -30,7 +30,7 @@ export const RouteRowView = ({
|
|||
title, distance, _id, openRoute, tab, startEditing, showMenu, showDropCard, hideMenu, is_admin, is_starred, toggleStarred,
|
||||
}: Props): ReactElement<Props, null> => (
|
||||
<div
|
||||
className={classnames('route-row-view', { has_menu: (tab === 'mine') })}
|
||||
className={classnames('route-row-view', { has_menu: (tab === 'my') })}
|
||||
>
|
||||
{
|
||||
(tab === 'all' || tab === 'starred') && is_admin &&
|
||||
|
@ -48,7 +48,7 @@ export const RouteRowView = ({
|
|||
>
|
||||
<div className="route-title">
|
||||
{
|
||||
(tab === 'mine' || !is_admin) && is_starred &&
|
||||
(tab === 'my' || !is_admin) && is_starred &&
|
||||
<div className="route-row-corner"><Icon icon="icon-star-fill" size={18} /></div>
|
||||
}
|
||||
<span>
|
||||
|
@ -68,7 +68,7 @@ export const RouteRowView = ({
|
|||
</div>
|
||||
</div>
|
||||
{
|
||||
tab === 'mine' &&
|
||||
tab === 'my' &&
|
||||
<React.Fragment>
|
||||
<div
|
||||
className="route-row-edit-button pointer"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue