finish filter bug
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {ClickAwayListener, List, ListItem, ListItemText, Paper, Popper} from '@mui/material';
|
||||
import {ClickAwayListener, List, ListItem, ListItemIcon, ListItemText, Paper, Popper} from '@mui/material';
|
||||
import {useState} from "react";
|
||||
|
||||
const columnFilterModeOptionFa = {
|
||||
@@ -10,6 +10,15 @@ const columnFilterModeOptionFa = {
|
||||
fuzzy: "فازی",
|
||||
}
|
||||
|
||||
const columnFilterModeOptionSymbol = {
|
||||
equals: "=",
|
||||
notEquals: "≠",
|
||||
contains: "*",
|
||||
lessThan: "<",
|
||||
greaterThan: ">",
|
||||
fuzzy: "≈",
|
||||
}
|
||||
|
||||
function FilterBox({
|
||||
anchorEl, open = false, handleClose = () => {
|
||||
}, columnFilterModeOptions, onSelectFilter, defaultFilter
|
||||
@@ -33,6 +42,7 @@ function FilterBox({
|
||||
<ListItem key={index} onClick={() => handleSelectFilter(option)}
|
||||
selected={option === selectedFilter} sx={{cursor: 'pointer'}}>
|
||||
<ListItemText primary={columnFilterModeOptionFa[option]}/>
|
||||
<ListItemIcon>{option === columnFilterModeOptionSymbol}</ListItemIcon>
|
||||
</ListItem>
|
||||
))}
|
||||
</List>
|
||||
|
||||
Reference in New Issue
Block a user