aboutsummaryrefslogtreecommitdiff
path: root/modern/src/main/DeviceList.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-10-23 08:25:18 -0700
committerAnton Tananaev <anton@traccar.org>2022-10-23 08:25:18 -0700
commit0a89d1ecae4e70b7c694b85b1696bf0c24b5c8d1 (patch)
treeca7944be8e954057fe4e9d4a1db3f3c0c29af393 /modern/src/main/DeviceList.js
parent0510fac36d0d852984b567104e2c9f0df9906492 (diff)
downloadtrackermap-web-0a89d1ecae4e70b7c694b85b1696bf0c24b5c8d1.tar.gz
trackermap-web-0a89d1ecae4e70b7c694b85b1696bf0c24b5c8d1.tar.bz2
trackermap-web-0a89d1ecae4e70b7c694b85b1696bf0c24b5c8d1.zip
Implement filter popover
Diffstat (limited to 'modern/src/main/DeviceList.js')
-rw-r--r--modern/src/main/DeviceList.js25
1 files changed, 11 insertions, 14 deletions
diff --git a/modern/src/main/DeviceList.js b/modern/src/main/DeviceList.js
index 6672ac46..eb51232f 100644
--- a/modern/src/main/DeviceList.js
+++ b/modern/src/main/DeviceList.js
@@ -1,7 +1,6 @@
import React, { useEffect, useRef, useState } from 'react';
import { useDispatch } from 'react-redux';
import makeStyles from '@mui/styles/makeStyles';
-import { List } from '@mui/material';
import { FixedSizeList } from 'react-window';
import AutoSizer from 'react-virtualized-auto-sizer';
import { devicesActions } from '../store';
@@ -48,19 +47,17 @@ const DeviceList = ({ devices }) => {
return (
<AutoSizer className={classes.list}>
{({ height, width }) => (
- <List disablePadding>
- <FixedSizeList
- width={width}
- height={height}
- itemCount={devices.length}
- itemData={devices}
- itemSize={72}
- overscanCount={10}
- innerRef={listInnerEl}
- >
- {DeviceRow}
- </FixedSizeList>
- </List>
+ <FixedSizeList
+ width={width}
+ height={height}
+ itemCount={devices.length}
+ itemData={devices}
+ itemSize={72}
+ overscanCount={10}
+ innerRef={listInnerEl}
+ >
+ {DeviceRow}
+ </FixedSizeList>
)}
</AutoSizer>
);