Skip to content

Commit

Permalink
refactor(VehicleRent): Tweak types
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Feb 4, 2025
1 parent 31a4c8d commit 44174fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/viewers/nearby/vehicle-rent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { connect } from 'react-redux'
import { IntlShape, useIntl } from 'react-intl'
// @ts-expect-error icons doesn't have typescript?
import { Micromobility } from '@opentripplanner/icons'
import React from 'react'
import React, { ReactElement } from 'react'

import { AppReduxState } from '../../../util/state-types'
import { IconWithText } from '../../util/styledIcon'
Expand All @@ -24,7 +24,7 @@ type VehicleFormFactor =

export const getVehicleIcon = (
vehicleType: VehicleFormFactor
): React.ReactNode => {
): ReactElement => {
switch (vehicleType) {
case 'SCOOTER':
case 'SCOOTER_SEATED':
Expand Down

0 comments on commit 44174fb

Please sign in to comment.