Skip to content

Commit

Permalink
fix: use other imports
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansberg committed Nov 8, 2023
1 parent 3d3a239 commit 944edf4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/page-modules/assistant/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import { FocusScope } from '@react-aria/focus';
import {
createTripQuery,
departureDateToDepartureMode,
DepartureMode,
departureModeToDepartureDate,
} from '@atb/page-modules/assistant';
} from './utils';
import { DepartureMode } from './types';
import SwapButton from '@atb/components/search/swap-button';
import GeolocationButton from '@atb/components/search/geolocation-button';
import { AnimatePresence, motion } from 'framer-motion';
Expand Down
16 changes: 4 additions & 12 deletions src/page-modules/assistant/server/journey-planner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,19 @@ import {
TripsNonTransitQueryVariables,
TripsQuery,
TripsQueryVariables,
} from '@atb/page-modules/assistant/server/journey-planner/journey-gql/trip.generated';
import {
Notice,
Situation,
TripData,
tripSchema,
} from '@atb/page-modules/assistant/server/journey-planner/validators';
} from './journey-gql/trip.generated';
import { Notice, Situation, TripData, tripSchema } from './validators';
import type {
NonTransitTripData,
NonTransitTripInput,
TripInput,
} from '@atb/page-modules/assistant/types';
} from '../../types';
import {
getTransportModesEnums,
isTransportModeType,
isTransportSubmodeType,
} from '@atb/page-modules/departures/server/journey-planner';
import {
filterOutDuplicates,
getCursorByDepartureMode,
} from '@atb/page-modules/assistant';
import { filterOutDuplicates, getCursorByDepartureMode } from '../../utils';

const MIN_NUMBER_OF_TRIP_PATTERNS = 8;
const MAX_NUMBER_OF_SEARCH_ATTEMPTS = 5;
Expand Down
5 changes: 2 additions & 3 deletions src/page-modules/assistant/trip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ import { Typo } from '@atb/components/typography';
import { GeocoderFeature } from '@atb/page-modules/departures';
import { TransportModeFilterOption } from '@atb/components/transport-mode-filter/types';
import { nextTripPatterns } from '../client';
import { DepartureMode, NonTransitTripData } from '../types';
import {
DepartureMode,
NonTransitTripData,
createTripQuery,
filterOutDuplicates,
getCursorByDepartureMode,
} from '..';
} from '../utils';
import { useEffect, useState } from 'react';
import { getInitialTransportModeFilter } from '@atb/components/transport-mode-filter/utils';
import { Button } from '@atb/components/button';
Expand Down

0 comments on commit 944edf4

Please sign in to comment.