Skip to content

Commit

Permalink
fix(ts/components/vehicleIcon): rename Ghost to GhostIcon (#2352)
Browse files Browse the repository at this point in the history
Fixes occasional errors in Storybook due to name collision with `Ghost` from "../realtime.d"
  • Loading branch information
firestack authored Jan 5, 2024
1 parent a351fd7 commit 4d2b09c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/src/components/vehicleIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export const VehicleIconSvgNode = React.memo(
<Label size={size} orientation={orientation} label={label} />
) : null}
{status === "ghost" ? (
<Ghost size={size} variant={variant} />
<GhostIcon size={size} variant={variant} />
) : (
<Triangle size={size} orientation={orientation} />
)}
Expand Down Expand Up @@ -320,7 +320,7 @@ const Triangle = React.memo(
}
)

const Ghost = React.memo(
const GhostIcon = React.memo(
({ size, variant }: { size: Size; variant?: string }) => {
// No orientation argument, because the ghost icon is always right side up.
const scale = scaleForSize(size)
Expand Down

0 comments on commit 4d2b09c

Please sign in to comment.