Can clear search filter in account page
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@ -2,9 +2,11 @@ import DeleteIcon from "@mui/icons-material/DeleteOutlined";
|
||||
import DriveFileMoveOutlineIcon from "@mui/icons-material/DriveFileMoveOutline";
|
||||
import LinkOffIcon from "@mui/icons-material/LinkOff";
|
||||
import MoreVertIcon from "@mui/icons-material/MoreVert";
|
||||
import ClearIcon from "@mui/icons-material/Clear";
|
||||
import RefreshIcon from "@mui/icons-material/Refresh";
|
||||
import {
|
||||
IconButton,
|
||||
InputAdornment,
|
||||
ListItemIcon,
|
||||
ListItemText,
|
||||
TextField,
|
||||
@ -392,6 +394,19 @@ function MovementsTable(p: {
|
||||
setFilter(e.target.value);
|
||||
}}
|
||||
style={{ padding: "0px", flex: 1 }}
|
||||
slotProps={{
|
||||
input: {
|
||||
endAdornment: filter.length > 0 && (
|
||||
<InputAdornment position="end">
|
||||
<Tooltip title="Clear current filter">
|
||||
<IconButton size="small" onClick={() => setFilter("")}>
|
||||
<ClearIcon />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</InputAdornment>
|
||||
),
|
||||
},
|
||||
}}
|
||||
/>
|
||||
<span style={{ flex: 1 }}></span>
|
||||
<Tooltip title="Refresh table">
|
||||
|
Reference in New Issue
Block a user