From dd18f6264b1a5eb006b4b57951176f7da9cf4fe1 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 22 May 2022 15:55:45 -0700 Subject: Reorganize collections --- modern/src/other/GeofencesList.js | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'modern/src/other') diff --git a/modern/src/other/GeofencesList.js b/modern/src/other/GeofencesList.js index d0d0853f..202ae3b1 100644 --- a/modern/src/other/GeofencesList.js +++ b/modern/src/other/GeofencesList.js @@ -2,15 +2,12 @@ import React, { Fragment } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { makeStyles } from '@material-ui/core/styles'; import Divider from '@material-ui/core/Divider'; -import IconButton from '@material-ui/core/IconButton'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; -import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction'; import ListItemText from '@material-ui/core/ListItemText'; -import MoreVertIcon from '@material-ui/icons/MoreVert'; import { devicesActions } from '../store'; -import EditCollectionView from '../settings/components/EditCollectionView'; +import CollectionActions from '../settings/components/CollectionActions'; const useStyles = makeStyles(() => ({ list: { @@ -24,7 +21,7 @@ const useStyles = makeStyles(() => ({ }, })); -const GeofenceView = ({ onMenuClick }) => { +const GeofencesList = () => { const classes = useStyles(); const dispatch = useDispatch(); @@ -36,11 +33,7 @@ const GeofenceView = ({ onMenuClick }) => { dispatch(devicesActions.select(item.id))}> - - onMenuClick(event.currentTarget, item.id)}> - - - + {index < list.length - 1 ? : null} @@ -49,8 +42,4 @@ const GeofenceView = ({ onMenuClick }) => { ); }; -const GeofencesList = () => ( - -); - export default GeofencesList; -- cgit v1.2.3