Skip to content

Commit

Permalink
Merge pull request #1277 from opentripplanner/pass-operator-logos-to-…
Browse files Browse the repository at this point in the history
…map-poup-skeletonized

Skeletonize Operator Logo Loading
  • Loading branch information
miles-grant-ibigroup committed Sep 18, 2024
2 parents 4a4d54c + 65efdd7 commit 472abe8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/components/util/transit-operator-icons.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { MapPin } from '@styled-icons/fa-solid'
import { useIntl } from 'react-intl'
import React from 'react'
import Skeleton from 'react-loading-skeleton'
import type { TransitOperator } from '@opentripplanner/types'

import { InlineLoading } from '../narrative/loading'

import InvisibleA11yLabel from './invisible-a11y-label'
import OperatorLogo from './operator-logo'
import type { StopData } from './types'
Expand Down Expand Up @@ -71,10 +70,7 @@ const TransitOperatorLogos = ({
return (
<>
{loading ? (
<>
<InlineLoading />
<span style={{ marginRight: '0.5ch' }} />
</>
<Skeleton height={20} style={{ marginRight: '0.5ch' }} width={20} />
) : (
transitOperators
?.filter((to) => Array.from(agencies).includes(to.agencyId))
Expand Down

0 comments on commit 472abe8

Please sign in to comment.