diff --git a/src/pages/BugReportForm .tsx b/src/pages/BugReportForm .tsx
index 0efaf555..897b7b15 100644
--- a/src/pages/BugReportForm .tsx
+++ b/src/pages/BugReportForm .tsx
@@ -1,7 +1,9 @@
import React, { useState } from 'react'
import { useTranslation } from 'react-i18next'
-import { Form, Input, Button, Upload, message, Select, FormProps, Card } from 'antd'
-import { UploadOutlined } from '@ant-design/icons'
+import { Form, Input, Button, Upload, message, Select, FormProps } from 'antd'
+import Card from '@mui/material/Card'
+import CardContent from '@mui/material/CardContent'
+import FileUploadOutlinedIcon from '@mui/icons-material/FileUploadOutlined'
import axios from 'axios'
import './BugReportForm.scss'
import { UploadChangeParam, UploadFile } from 'antd/lib/upload'
@@ -65,116 +67,120 @@ const BugReportForm = () => {
return (
-
- דאטאבוס
-
-
- {t('reportBug.description')}
-
- {submittedUrl && (
-
- {t('reportBug.viewIssue')} (Github)
-
- )}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false}
- listType="picture"
- fileList={fileList}
- onChange={onFileChange}>
- }>{t('bug_attachments_upload_button')}
-
-
-
-
-
-
-
+
+
+ דאטאבוס
+
+
+ {t('reportBug.description')}
+
+ {submittedUrl && (
+
+ {t('reportBug.viewIssue')} (Github)
+
+ )}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false}
+ listType="picture"
+ fileList={fileList}
+ onChange={onFileChange}>
+ }>
+ {t('bug_attachments_upload_button')}
+
+
+
+
+
+
+
+
+
)
}
diff --git a/src/pages/about/index.tsx b/src/pages/about/index.tsx
index 47691f20..207877a2 100644
--- a/src/pages/about/index.tsx
+++ b/src/pages/about/index.tsx
@@ -2,21 +2,20 @@ import styled from 'styled-components'
import SlackIcon from '../../resources/slack-icon.svg'
import { Trans, useTranslation } from 'react-i18next'
import Widget from 'src/shared/Widget'
-import { Space, Typography } from 'antd'
-
+import Typography from '@mui/material/Typography'
+import Stack from '@mui/material/Stack'
import './About.scss'
import { useQuery } from '@tanstack/react-query'
-const { Title } = Typography
const pageName = 'aboutPage'
const About = () => {
const { t } = useTranslation()
return (
-
-
+
+
{t(`${pageName}.title`)}
-
+
@@ -24,8 +23,8 @@ const About = () => {
-
-
+
+
)
}
diff --git a/src/pages/components/Label.tsx b/src/pages/components/Label.tsx
index e9d6a598..f8349419 100644
--- a/src/pages/components/Label.tsx
+++ b/src/pages/components/Label.tsx
@@ -1,6 +1,6 @@
import styled from 'styled-components'
-import { Typography } from 'antd'
-const { Text } = Typography
+import Typography from '@mui/material/Typography'
+
const StyledDiv = styled.div`
display: inline-flex;
width: 100%;
@@ -15,6 +15,6 @@ type LabelProps = {
export const Label = ({ text }: LabelProps) => (
- {text}
+ {text}
)
diff --git a/src/pages/components/YoutubeModal.tsx b/src/pages/components/YoutubeModal.tsx
index 32549566..147c424a 100644
--- a/src/pages/components/YoutubeModal.tsx
+++ b/src/pages/components/YoutubeModal.tsx
@@ -1,4 +1,5 @@
import { useState } from 'react'
+// import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined'; //TODO:
import { InfoCircleOutlined } from '@ant-design/icons'
import { Modal } from 'antd'
import './YotubeModal.scss'
diff --git a/src/pages/components/map-related/MapLayers/BusToolTip.tsx b/src/pages/components/map-related/MapLayers/BusToolTip.tsx
index 0f4771cd..19c644f6 100644
--- a/src/pages/components/map-related/MapLayers/BusToolTip.tsx
+++ b/src/pages/components/map-related/MapLayers/BusToolTip.tsx
@@ -7,7 +7,7 @@ import './BusToolTip.scss'
import { getSiriRideWithRelated } from 'src/api/siriService'
import { SiriRideWithRelatedPydanticModel } from 'open-bus-stride-client/openapi/models/SiriRideWithRelatedPydanticModel'
import { useTranslation } from 'react-i18next'
-import { Spin } from 'antd'
+import CircularProgress from '@mui/material/CircularProgress'
import cn from 'classnames'
import CustomTreeView from '../../CustomTreeView'
@@ -35,7 +35,7 @@ export function BusToolTip({ position, icon }: BusToolTipProps) {
{isLoading || !siriRide ? (
{t('loading_routes')}
-
+
) : (
<>
diff --git a/src/pages/components/map-related/MapWithLocationsAndPath.tsx b/src/pages/components/map-related/MapWithLocationsAndPath.tsx
index e8001b0e..ecefe1a0 100644
--- a/src/pages/components/map-related/MapWithLocationsAndPath.tsx
+++ b/src/pages/components/map-related/MapWithLocationsAndPath.tsx
@@ -1,9 +1,9 @@
import { MapContainer } from 'react-leaflet'
import { Point } from 'src/pages/timeBasedMap'
+import IconButton from '@mui/material/IconButton'
+import OpenInFullRoundedIcon from '@mui/icons-material/OpenInFullRounded'
import { MapProps } from './map-types'
import { useCallback, useState } from 'react'
-import { Button } from 'antd'
-import { ExpandAltOutlined } from '@ant-design/icons'
import '../../Map.scss'
import { MapContent } from './MapContent'
@@ -18,13 +18,10 @@ export function MapWithLocationsAndPath({ positions, plannedRouteStops }: MapPro
return (
-
}
- />
+
+
+
+
diff --git a/src/pages/dashboard/DashboardPage.tsx b/src/pages/dashboard/DashboardPage.tsx
index 4bb68c1c..8586637b 100644
--- a/src/pages/dashboard/DashboardPage.tsx
+++ b/src/pages/dashboard/DashboardPage.tsx
@@ -10,7 +10,8 @@ import './DashboardPage.scss'
import 'src/App.scss'
import { PageContainer } from '../components/PageContainer'
import { useTranslation } from 'react-i18next'
-import { Alert, Typography } from 'antd'
+import Typography from '@mui/material/Typography'
+import Alert from '@mui/material/Alert'
import Grid from '@mui/material/Unstable_Grid2' // Grid version 2
// Components
@@ -21,7 +22,6 @@ import WorstLinesChart from './WorstLinesChart/WorstLinesChart'
import InfoYoutubeModal from '../components/YoutubeModal'
// Declarations
-const { Title } = Typography
const now = moment()
const DashboardPage = () => {
@@ -32,17 +32,21 @@ const DashboardPage = () => {
return (
-
+
{t('dashboard_page_title')}
-
-
+
+
+ {t('dashboard_page_description')}
+
{startDate > endDate ? (
-
+
+ {t('bug_date_alert')}
+
) : null}
{
return (
-
+
{t('gaps_page_title')}
-
-
+
+
+ {t('gaps_page_description')}
+
{/* choose date */}
@@ -159,7 +160,7 @@ const GapsPage = () => {
{routesIsLoading && (
-
+
)}
{!routesIsLoading &&
@@ -178,7 +179,7 @@ const GapsPage = () => {
{gapsIsLoading && (
-
+
)}
diff --git a/src/pages/gapsPatterns/GapsPatternsPage.tsx b/src/pages/gapsPatterns/GapsPatternsPage.tsx
index f4c56af7..8016bf74 100644
--- a/src/pages/gapsPatterns/GapsPatternsPage.tsx
+++ b/src/pages/gapsPatterns/GapsPatternsPage.tsx
@@ -1,7 +1,8 @@
import { useContext, useEffect, useState } from 'react'
import './GapsPatternsPage.scss'
import { Moment } from 'moment'
-import { Skeleton, Spin, Radio, Typography, RadioChangeEvent, Alert, Space } from 'antd'
+import { Skeleton, Radio, RadioChangeEvent, Space } from 'antd'
+import CircularProgress from '@mui/material/CircularProgress'
import moment from 'moment/moment'
import { useDate } from '../components/DateTimePicker'
import { PageContainer } from '../components/PageContainer'
@@ -14,7 +15,8 @@ import RouteSelector from '../components/RouteSelector'
import { SearchContext } from '../../model/pageState'
import { getRoutesAsync } from '../../api/gtfsService'
import Grid from '@mui/material/Unstable_Grid2' // Grid version 2
-
+import Typography from '@mui/material/Typography'
+import Alert from '@mui/material/Alert'
import {
Bar,
CartesianGrid,
@@ -31,7 +33,6 @@ import { mapColorByExecution } from '../components/utils'
import { useGapsList } from './useGapsList'
import { DateSelector } from '../components/DateSelector'
import { INPUT_SIZE } from 'src/resources/sizes'
-const { Title } = Typography
import { useTranslation } from 'react-i18next'
import Widget from 'src/shared/Widget'
import InfoYoutubeModal from '../components/YoutubeModal'
@@ -175,20 +176,25 @@ const GapsPatternsPage = () => {
return (
-
+
{t('gaps_patterns_page_title')}
-
+
-
+
+ {t('gaps_patterns_page_description')}
+
{startDate > endDate ? (
-
+
+ {t('bug_date_alert')}
+
) : null}
+
@@ -239,7 +245,7 @@ const GapsPatternsPage = () => {
{routesIsLoading && (
-
+
)}
{!routesIsLoading &&
diff --git a/src/pages/historicTimeline/index.tsx b/src/pages/historicTimeline/index.tsx
index 7be050f0..9fcf86d7 100644
--- a/src/pages/historicTimeline/index.tsx
+++ b/src/pages/historicTimeline/index.tsx
@@ -15,7 +15,9 @@ import RouteSelector from 'src/pages/components/RouteSelector'
import { Label } from 'src/pages/components/Label'
import { useTranslation } from 'react-i18next'
import StopSelector from 'src/pages/components/StopSelector'
-import { Spin, Typography, Alert, Space } from 'antd'
+import Typography from '@mui/material/Typography'
+import Alert from '@mui/material/Alert'
+import CircularProgress from '@mui/material/CircularProgress'
import { getSiriStopHitTimesAsync } from 'src/api/siriService'
import { TimelineBoard } from 'src/pages/components/timeline/TimelineBoard'
import { PageContainer } from '../components/PageContainer'
@@ -25,8 +27,6 @@ import moment from 'moment'
import { DateSelector } from '../components/DateSelector'
import Grid from '@mui/material/Unstable_Grid2' // Grid version 2
-const { Title } = Typography
-
const StyledTimelineBoard = styled(TimelineBoard)`
margin-top: ${MARGIN_MEDIUM * 3}px;
margin-bottom: ${MARGIN_MEDIUM * 3}px;
@@ -140,10 +140,13 @@ const TimelinePage = () => {
return (
- {t('timeline_page_title')}
-
-
-
+
+ {t('timeline_page_title')}
+
+
+
+ {t('timeline_page_description')}
+
{/* choose date */}
@@ -183,7 +186,7 @@ const TimelinePage = () => {
{routesIsLoading && (
-
+
)}
{!routesIsLoading &&
@@ -203,7 +206,7 @@ const TimelinePage = () => {
{stopsIsLoading && (
-
+
)}
{!stopsIsLoading && stops && (
@@ -224,7 +227,7 @@ const TimelinePage = () => {
{hitsIsLoading && (
-
+
)}
diff --git a/src/pages/lineProfile/LineProfile.tsx b/src/pages/lineProfile/LineProfile.tsx
index 61edcb86..2fd3877c 100644
--- a/src/pages/lineProfile/LineProfile.tsx
+++ b/src/pages/lineProfile/LineProfile.tsx
@@ -17,7 +17,8 @@ import { getRoutesAsync } from 'src/api/gtfsService'
import { BusRoute } from 'src/model/busRoute'
import { useSingleLineData } from 'src/hooks/useSingleLineData'
import { FilterPositionsByStartTimeSelector } from '../components/FilterPositionsByStartTimeSelector'
-import { Spin, Tooltip } from 'antd'
+import { Tooltip } from 'antd'
+import CircularProgress from '@mui/material/CircularProgress'
import './LineProfile.scss'
const LineProfileWrapper = () => (
@@ -95,7 +96,7 @@ const LineProfile = () => {
{locationsAreLoading && (
-
+
)}
{
return (
-
+
{t('singleline_map_page_title')}
-
+
{/* choose date*/}
diff --git a/src/pages/timeBasedMap/index.tsx b/src/pages/timeBasedMap/index.tsx
index 7e846b8f..3b952583 100644
--- a/src/pages/timeBasedMap/index.tsx
+++ b/src/pages/timeBasedMap/index.tsx
@@ -2,8 +2,11 @@ import { useCallback, useEffect, useMemo, useState } from 'react'
import { MapContainer, Marker, Polyline, Popup, TileLayer, useMap } from 'react-leaflet'
import MarkerClusterGroup from 'react-leaflet-cluster'
import { useTranslation } from 'react-i18next'
-import { Button, Spin, Typography, Alert, Space } from 'antd'
-import { ExpandAltOutlined } from '@ant-design/icons'
+import Alert from '@mui/material/Alert'
+import Typography from '@mui/material/Typography'
+import CircularProgress from '@mui/material/CircularProgress'
+import IconButton from '@mui/material/IconButton'
+import OpenInFullRoundedIcon from '@mui/icons-material/OpenInFullRounded'
import moment from 'moment'
import getAgencyList, { Agency } from 'src/api/agencyList'
import useVehicleLocations from 'src/api/useVehicleLocations'
@@ -22,8 +25,6 @@ import { busIcon, busIconPath } from '../components/utils/BusIcon'
import { BusToolTip } from 'src/pages/components/map-related/MapLayers/BusToolTip'
import InfoYoutubeModal from '../components/YoutubeModal'
-const { Title } = Typography
-
export interface Point {
loc: [number, number]
color: number
@@ -97,19 +98,19 @@ export default function TimeBasedMapPage() {
return (
-
+
{t('time_based_map_page_title')}
-
+
-
-
-
+
+ {t('time_based_map_page_description')}
+
{/* from date */}
@@ -161,16 +162,12 @@ export default function TimeBasedMapPage() {
.replace('YYY', moment(to).format('hh:mm A'))}
- {isLoading && }
+ {isLoading && }
- }
- />
+
+
+
{
- return {props.children}
+ return (
+
+ {props.children}
+
+ )
}
export default Widget