aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/map')
-rw-r--r--modern/src/map/MapGeofence.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/map/MapGeofence.js b/modern/src/map/MapGeofence.js
index 3bfbca24..6208795c 100644
--- a/modern/src/map/MapGeofence.js
+++ b/modern/src/map/MapGeofence.js
@@ -3,14 +3,14 @@ import { useSelector } from 'react-redux';
import { useTheme } from '@mui/styles';
import { map } from './core/MapView';
import { findFonts, geofenceToFeature } from './core/mapUtil';
-import usePersistedState from '../common/util/usePersistedState';
+import { useAttributePreference } from '../common/util/preferences';
const MapGeofence = () => {
const id = useId();
const theme = useTheme();
- const [mapGeofences] = usePersistedState('mapGeofences', true);
+ const mapGeofences = useAttributePreference('mapGeofences', true);
const geofences = useSelector((state) => state.geofences.items);