Skip to content

Commit

Permalink
perf(index): Remove calltaker components from index
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Sep 22, 2023
1 parent a20d0d2 commit 932d835
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
12 changes: 0 additions & 12 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
/* eslint-disable prettier/prettier */
/* eslint-disable sort-imports-es6-autofix/sort-imports-es6 */
import CallTakerControls from './components/admin/call-taker-controls'
import CallHistoryWindow from './components/admin/call-history-window'
import FieldTripWindows from './components/admin/field-trip-windows'
import MailablesWindow from './components/admin/mailables-window'
import DateTimeModal from './components/form/date-time-modal'
import DateTimePreview from './components/form/date-time-preview'
import ErrorMessage from './components/form/error-message'
Expand All @@ -29,7 +25,6 @@ import ViewStopButton from './components/viewers/view-stop-button'
import ViewerContainer from './components/viewers/viewer-container'
import ResponsiveWebapp from './components/app/responsive-webapp'
import AppMenu from './components/app/app-menu'
import CallTakerPanel from './components/app/call-taker-panel'
import DesktopNav from './components/app/desktop-nav'
import BatchRoutingPanel from './components/app/batch-routing-panel'
import BatchResultsScreen from './components/mobile/batch-results-screen'
Expand All @@ -50,12 +45,6 @@ const MobileResultsScreen = BatchResultsScreen
const MobileSearchScreen = BatchSearchScreen

export {
// module components
CallHistoryWindow,
CallTakerControls,
FieldTripWindows,
MailablesWindow,

// form components
DateTimeModal,
DateTimePreview,
Expand Down Expand Up @@ -96,7 +85,6 @@ export {
// app components,
ResponsiveWebapp,
AppMenu,
CallTakerPanel,
DesktopNav,

// batch routing components
Expand Down
10 changes: 6 additions & 4 deletions percy/har-mock-config-call-taker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ import React from 'react'
import {
BatchResultsScreen,
BatchSearchScreen,
CallHistoryWindow,
CallTakerPanel,
FieldTripWindows,
MailablesWindow,
MetroItinerary
// Webpack sets this file to run from a subdirectory within otp-react-redux
// ../lib points to the index file of otp-react-redux's source code
} from '../lib'
import {
CallHistoryWindow,
FieldTripWindows,
MailablesWindow
} from '../lib/components/admin'
import { CallTakerPanel } from '../lib/components/app'

/**
* Custom itinerary footer for this deployment.
Expand Down

0 comments on commit 932d835

Please sign in to comment.