aboutsummaryrefslogtreecommitdiff
path: root/modern/src/MainPage.js
diff options
context:
space:
mode:
authorLucas Leite <lbl.lucasleite@gmail.com>2022-02-08 19:06:09 -0300
committerLucas Leite <lbl.lucasleite@gmail.com>2022-02-08 19:06:09 -0300
commit110012324b5a58a48af1894b66b0068a444263db (patch)
tree261e25a5edc102fa31c19af1fe365ebb89cd8d34 /modern/src/MainPage.js
parentf35692eef0763fe853f3d88a18d6aefbbf5d0d2b (diff)
downloadtrackermap-web-110012324b5a58a48af1894b66b0068a444263db.tar.gz
trackermap-web-110012324b5a58a48af1894b66b0068a444263db.tar.bz2
trackermap-web-110012324b5a58a48af1894b66b0068a444263db.zip
Changed device list search
Diffstat (limited to 'modern/src/MainPage.js')
-rw-r--r--modern/src/MainPage.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/modern/src/MainPage.js b/modern/src/MainPage.js
index b20c1264..0176c7f0 100644
--- a/modern/src/MainPage.js
+++ b/modern/src/MainPage.js
@@ -98,7 +98,7 @@ const MainPage = () => {
const isTablet = useMediaQuery(theme.breakpoints.down('md'));
const isPhone = useMediaQuery(theme.breakpoints.down('xs'));
- const [deviceName, setDeviceName] = useState('');
+ const [searchKeyword, setSearchKeyword] = useState('');
const [collapsed, setCollapsed] = useState(false);
const handleClose = () => {
@@ -139,11 +139,11 @@ const MainPage = () => {
)}
<TextField
fullWidth
- name="deviceName"
- value={deviceName}
- autoComplete="deviceName"
+ name="searchKeyword"
+ value={searchKeyword}
+ autoComplete="searchKeyword"
autoFocus
- onChange={(event) => setDeviceName(event.target.value)}
+ onChange={(event) => setSearchKeyword(event.target.value)}
placeholder="Search Devices"
variant="filled"
/>
@@ -158,7 +158,7 @@ const MainPage = () => {
</Toolbar>
</Paper>
<div className={classes.deviceList}>
- <DevicesList filter={deviceName} />
+ <DevicesList filter={searchKeyword} />
</div>
</Paper>
<BottomMenu />