aboutsummaryrefslogtreecommitdiff
path: root/modern/src/other/GeofencesList.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/other/GeofencesList.js')
-rw-r--r--modern/src/other/GeofencesList.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/other/GeofencesList.js b/modern/src/other/GeofencesList.js
index d26eff09..a7858ce5 100644
--- a/modern/src/other/GeofencesList.js
+++ b/modern/src/other/GeofencesList.js
@@ -8,6 +8,7 @@ import {
import { geofencesActions } from '../store';
import CollectionActions from '../settings/components/CollectionActions';
import { useCatchCallback } from '../reactHelper';
+import { useTranslation } from '../common/components/LocalizationProvider';
const useStyles = makeStyles(() => ({
list: {
@@ -24,6 +25,7 @@ const useStyles = makeStyles(() => ({
const GeofencesList = ({ onGeofenceSelected }) => {
const classes = useStyles();
const dispatch = useDispatch();
+ const t = useTranslation();
const items = useSelector((state) => state.geofences.items);
@@ -42,7 +44,7 @@ const GeofencesList = ({ onGeofenceSelected }) => {
<Fragment key={item.id}>
<ListItemButton key={item.id} onClick={() => onGeofenceSelected(item.id)}>
<ListItemText primary={item.name} />
- <CollectionActions itemId={item.id} editPath="/settings/geofence" endpoint="geofences" setTimestamp={refreshGeofences} />
+ <CollectionActions itemId={item.id} editPath="/settings/geofence" endpoint="geofences" collectionTitle={t('sharedGeofence')} setTimestamp={refreshGeofences} />
</ListItemButton>
{index < list.length - 1 ? <Divider /> : null}
</Fragment>