diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-28 13:36:19 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-28 13:36:19 -0700 |
commit | ba70d247fbfec51a5dd2c02433a490c4a7ec54d6 (patch) | |
tree | 8e31a7df9a0085c85c03a4e9296edef74bd2987c | |
parent | bab9fb10c0bb0a497de6cf4fc8a8d1a684074cea (diff) | |
download | trackermap-web-ba70d247fbfec51a5dd2c02433a490c4a7ec54d6.tar.gz trackermap-web-ba70d247fbfec51a5dd2c02433a490c4a7ec54d6.tar.bz2 trackermap-web-ba70d247fbfec51a5dd2c02433a490c4a7ec54d6.zip |
Update dropzone version
-rw-r--r-- | modern/package.json | 2 | ||||
-rw-r--r-- | modern/src/settings/CalendarPage.js | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/modern/package.json b/modern/package.json index 3b052e52..e3cec64b 100644 --- a/modern/package.json +++ b/modern/package.json @@ -16,10 +16,10 @@ "@turf/turf": "^6.5.0", "mapbox-gl": "^1.13.2", "maplibre-gl": "^2.1.9", - "material-ui-dropzone": "^3.5.0", "moment": "^2.29.3", "react": "^17.0.2", "react-dom": "^17.0.2", + "react-mui-dropzone": "^4.0.6", "react-redux": "^8.0.2", "react-router-dom": "^6.3.0", "react-scripts": "^5.0.1", diff --git a/modern/src/settings/CalendarPage.js b/modern/src/settings/CalendarPage.js index 8bfcd50d..463b7d8c 100644 --- a/modern/src/settings/CalendarPage.js +++ b/modern/src/settings/CalendarPage.js @@ -5,11 +5,12 @@ import { } from '@mui/material'; import makeStyles from '@mui/styles/makeStyles'; import ExpandMoreIcon from '@mui/icons-material/ExpandMore'; -import { DropzoneArea } from 'material-ui-dropzone'; +import { DropzoneArea } from 'react-mui-dropzone'; import EditItemView from './components/EditItemView'; import EditAttributesView from './components/EditAttributesView'; import { useTranslation } from '../common/components/LocalizationProvider'; import SettingsMenu from './components/SettingsMenu'; +import components from '../common/theme/components'; const useStyles = makeStyles((theme) => ({ details: { @@ -67,6 +68,7 @@ const CalendarPage = () => { <DropzoneArea filesLimit={1} onChange={handleFiles} + alertSnackbarProps={components.MuiSnackbar.defaultProps} /> </AccordionDetails> </Accordion> |