aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-23 07:22:59 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-23 07:22:59 -0700
commita2806bf6db5bae5546b62b0034a4ec877632935f (patch)
tree3d7d4f3862b3fa87fba56c072e70891e0c2ed580
parentc591835bd91d5ae0c93471a246fa92d7c327464d (diff)
downloadtrackermap-web-a2806bf6db5bae5546b62b0034a4ec877632935f.tar.gz
trackermap-web-a2806bf6db5bae5546b62b0034a4ec877632935f.tar.bz2
trackermap-web-a2806bf6db5bae5546b62b0034a4ec877632935f.zip
Fix button list items
-rw-r--r--modern/src/other/GeofencesList.js2
-rw-r--r--modern/src/reports/components/ReportsMenu.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/other/GeofencesList.js b/modern/src/other/GeofencesList.js
index 88db0654..5463d73a 100644
--- a/modern/src/other/GeofencesList.js
+++ b/modern/src/other/GeofencesList.js
@@ -40,7 +40,7 @@ const GeofencesList = () => {
<List className={classes.list}>
{Object.values(items).map((item, index, list) => (
<Fragment key={item.id}>
- <ListItemButton button key={item.id} onClick={() => dispatch(devicesActions.select(item.id))}>
+ <ListItemButton key={item.id} onClick={() => dispatch(devicesActions.select(item.id))}>
<ListItemText primary={item.name} />
<CollectionActions itemId={item.id} editPath="/settings/geofence" endpoint="geofences" setTimestamp={refreshGeofences} />
</ListItemButton>
diff --git a/modern/src/reports/components/ReportsMenu.js b/modern/src/reports/components/ReportsMenu.js
index dc0da4b9..8fa7df2d 100644
--- a/modern/src/reports/components/ReportsMenu.js
+++ b/modern/src/reports/components/ReportsMenu.js
@@ -17,7 +17,7 @@ import { useAdministrator } from '../../common/util/permissions';
const MenuItem = ({
title, link, icon, selected,
}) => (
- <ListItemButton button key={link} component={Link} to={link} selected={selected}>
+ <ListItemButton key={link} component={Link} to={link} selected={selected}>
<ListItemIcon>{icon}</ListItemIcon>
<ListItemText primary={title} />
</ListItemButton>