aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/settings/CalendarPage.js4
-rw-r--r--modern/src/settings/DevicePage.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/modern/src/settings/CalendarPage.js b/modern/src/settings/CalendarPage.js
index 896a77c4..27fdb462 100644
--- a/modern/src/settings/CalendarPage.js
+++ b/modern/src/settings/CalendarPage.js
@@ -10,7 +10,6 @@ import EditItemView from './components/EditItemView';
import EditAttributesAccordion from './components/EditAttributesAccordion';
import { useTranslation } from '../common/components/LocalizationProvider';
import SettingsMenu from './components/SettingsMenu';
-import components from '../common/theme/components';
const useStyles = makeStyles((theme) => ({
details: {
@@ -66,9 +65,10 @@ const CalendarPage = () => {
label={t('sharedName')}
/>
<DropzoneArea
+ dropzoneText={t('sharedDropzoneText')}
filesLimit={1}
onChange={handleFiles}
- alertSnackbarProps={components.MuiSnackbar.defaultProps}
+ showAlerts={false}
/>
</AccordionDetails>
</Accordion>
diff --git a/modern/src/settings/DevicePage.js b/modern/src/settings/DevicePage.js
index d0d5dd5e..bf79109b 100644
--- a/modern/src/settings/DevicePage.js
+++ b/modern/src/settings/DevicePage.js
@@ -24,7 +24,6 @@ import { useAdministrator } from '../common/util/permissions';
import SettingsMenu from './components/SettingsMenu';
import useCommonDeviceAttributes from '../common/attributes/useCommonDeviceAttributes';
import useFeatures from '../common/util/useFeatures';
-import components from '../common/theme/components';
import { useCatch } from '../reactHelper';
const useStyles = makeStyles((theme) => ({
@@ -150,10 +149,11 @@ const DevicePage = () => {
</AccordionSummary>
<AccordionDetails className={classes.details}>
<DropzoneArea
+ dropzoneText={t('sharedDropzoneText')}
acceptedFiles={['image/*']}
filesLimit={1}
onChange={handleFiles}
- alertSnackbarProps={components.MuiSnackbar.defaultProps}
+ showAlerts={false}
/>
</AccordionDetails>
</Accordion>