Skip to content

Commit

Permalink
chore: move chart directories to 3 main folders (#277)
Browse files Browse the repository at this point in the history
* chore: move charts to 3 main folders
  • Loading branch information
shootermv authored Dec 4, 2023
1 parent d04b1b9 commit b1367e3
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/pages/RealtimeMapPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Grid from '@mui/material/Unstable_Grid2' // Grid version 2
import { PageContainer } from './components/PageContainer'
import { INPUT_SIZE } from 'src/resources/sizes'
import { Label } from './components/Label'
import { getColorByHashString } from './dashboard/OperatorHbarChart/utils'
import { getColorByHashString } from './dashboard/AllLineschart/OperatorHbarChart/utils'
import createClusterCustomIcon from './components/utils/customCluster/customCluster'
import { TimeSelector } from './components/TimeSelector'
import { busIcon, busIconPath } from './components/utils/BusIcon'
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SingleLineMapPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Grid from '@mui/material/Unstable_Grid2' // Grid version 2
import './Map.scss'
import getAgencyList, { Agency } from 'src/api/agencyList'
import { VehicleLocation } from 'src/model/vehicleLocation'
import { getColorByHashString } from './dashboard/OperatorHbarChart/utils'
import { getColorByHashString } from './dashboard/AllLineschart/OperatorHbarChart/utils'
import { DateSelector } from './components/DateSelector'
import { CircularProgress } from '@mui/material'
import { FilterPositionsByStartTimeSelector } from './components/FilterPositionsByStartTimeSelector'
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dashboard/AllLineschart/AllLinesChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Tooltip } from '@mui/material'
import { Skeleton } from 'antd'
import { Fragment } from 'react'
import { TEXTS } from 'src/resources/texts'
import OperatorHbarChart from '../OperatorHbarChart/OperatorHbarChart'
import OperatorHbarChart from './OperatorHbarChart/OperatorHbarChart'
import { GroupByRes, useGroupBy } from 'src/api/groupByService'
import { FC } from 'react'
import { Moment } from 'moment/moment'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import './operatorsHbarChart.scss'
import { getColorByHashString } from './utils'
import { HbarChart } from '../HbarChart/HbarChart'
import { HbarChart } from '../../WorstLinesChart/LineHbarChart/HbarChart/HbarChart'

const colorsByCompannies: { [index: string]: string } = {
'אגד תעבורה': '#2f9250',
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HbarChart } from '../HbarChart/HbarChart'
import { getColorName } from '../OperatorHbarChart/OperatorHbarChart'
import { HbarChart } from './HbarChart/HbarChart'
import { getColorName } from '../../AllLineschart/OperatorHbarChart/OperatorHbarChart'

function LinesHbarChart({
lines,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dashboard/WorstLinesChart/WorstLinesChart.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Skeleton } from 'antd'
import { GroupByRes, useGroupBy } from 'src/api/groupByService'
import LinesHbarChart from '../LineHbarChart/LinesHbarChart'
import LinesHbarChart from './LineHbarChart/LinesHbarChart'
import { TEXTS } from 'src/resources/texts'
import { FC } from 'react'
import { Moment } from 'moment/moment'
Expand Down

0 comments on commit b1367e3

Please sign in to comment.