aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-28 13:36:19 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-28 13:36:19 -0700
commitba70d247fbfec51a5dd2c02433a490c4a7ec54d6 (patch)
tree8e31a7df9a0085c85c03a4e9296edef74bd2987c /modern
parentbab9fb10c0bb0a497de6cf4fc8a8d1a684074cea (diff)
downloadtrackermap-web-ba70d247fbfec51a5dd2c02433a490c4a7ec54d6.tar.gz
trackermap-web-ba70d247fbfec51a5dd2c02433a490c4a7ec54d6.tar.bz2
trackermap-web-ba70d247fbfec51a5dd2c02433a490c4a7ec54d6.zip
Update dropzone version
Diffstat (limited to 'modern')
-rw-r--r--modern/package.json2
-rw-r--r--modern/src/settings/CalendarPage.js4
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>