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('reportBug.description')} +

+ {submittedUrl && ( + + {t('reportBug.viewIssue')} (Github) + + )} +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false} + listType="picture" + fileList={fileList} + onChange={onFileChange}> + + + + + + + +
+
) } 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 ( - - + <Stack spacing={4}> + <Typography variant="h4" gutterBottom className="page-title"> {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 (
-