Skip to content

Commit

Permalink
refactor(TripCompanionsPane): Remove unneeded types
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Dec 20, 2024
1 parent 6b8e177 commit e70e556
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions lib/components/user/mobility-profile/trip-companions-pane.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { connect } from 'react-redux'
import {
FormattedMessage,
IntlShape,
useIntl,
WrappedComponentProps
} from 'react-intl'
import { FormattedMessage, IntlShape, useIntl } from 'react-intl'
import { FormikProps } from 'formik'
import React, { useCallback, useEffect } from 'react'

Expand All @@ -15,12 +10,11 @@ import { MonitoredTrip, User } from '../types'

import CompanionSelector, { Option } from './companion-selector'

type Props = WrappedComponentProps &
FormikProps<MonitoredTrip> & {
getDependentUserInfo: (userIds: string[], intl: IntlShape) => void
isReadOnly: boolean
loggedInUser: User
}
type Props = FormikProps<MonitoredTrip> & {
getDependentUserInfo: (userIds: string[], intl: IntlShape) => void
isReadOnly: boolean
loggedInUser: User
}

function optionValue(option: Option | null) {
if (!option) return null
Expand Down

0 comments on commit e70e556

Please sign in to comment.