diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-04 07:18:32 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-04 07:18:32 -0700 |
commit | 022718d7d0831c246bbe01cc2d8fb66709be3189 (patch) | |
tree | b3ce8b4ec47616cb415ebc07e765b4ab392cb865 /modern/src/main | |
parent | b418d001a498b5a5108bb13983b4f3aba6c60dbc (diff) | |
download | trackermap-web-022718d7d0831c246bbe01cc2d8fb66709be3189.tar.gz trackermap-web-022718d7d0831c246bbe01cc2d8fb66709be3189.tar.bz2 trackermap-web-022718d7d0831c246bbe01cc2d8fb66709be3189.zip |
Add filter config button
Diffstat (limited to 'modern/src/main')
-rw-r--r-- | modern/src/main/MainPage.js | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/modern/src/main/MainPage.js b/modern/src/main/MainPage.js index 27e2631f..50209568 100644 --- a/modern/src/main/MainPage.js +++ b/modern/src/main/MainPage.js @@ -1,7 +1,7 @@ import React, { useState, useEffect, useCallback } from 'react'; import { useNavigate } from 'react-router-dom'; import { - Paper, Toolbar, TextField, IconButton, Button, + Paper, Toolbar, IconButton, Button, OutlinedInput, InputAdornment, } from '@mui/material'; import makeStyles from '@mui/styles/makeStyles'; @@ -12,6 +12,7 @@ import AddIcon from '@mui/icons-material/Add'; import CloseIcon from '@mui/icons-material/Close'; import ArrowBackIcon from '@mui/icons-material/ArrowBack'; import ListIcon from '@mui/icons-material/ViewList'; +import TuneIcon from '@mui/icons-material/Tune'; import { useDispatch, useSelector } from 'react-redux'; import DevicesList from './DevicesList'; @@ -192,13 +193,19 @@ const MainPage = () => { <ArrowBackIcon /> </IconButton> )} - <TextField - fullWidth - name="searchKeyword" + <OutlinedInput + placeholder={t('sharedSearchDevices')} value={searchKeyword} - autoComplete="searchKeyword" onChange={(event) => setSearchKeyword(event.target.value)} - placeholder={t('sharedSearchDevices')} + endAdornment={( + <InputAdornment position="end"> + <IconButton size="small" onClick={() => {}}> + <TuneIcon fontSize="small" /> + </IconButton> + </InputAdornment> + )} + size="small" + fullWidth /> <IconButton onClick={() => navigate('/settings/device')} disabled={deviceReadonly}> <AddIcon /> |