remove symbol
This commit is contained in:
@@ -14,9 +14,9 @@ import TextFieldWithFnBox from "@/core/components/DataTable/filter/TextFieldWith
|
||||
function FilterColumn({columns}) {
|
||||
const [open, setOpen] = useState(false);
|
||||
const [selectedFilters, setSelectedFilters] = useState([]);
|
||||
const [userId, setUserId] = useState(2);
|
||||
const [pageName, setPageName] = useState('loan');
|
||||
const [tableName, setTableName] = useState('loan_table');
|
||||
const [userId, setUserId] = useState(0);
|
||||
const [pageName, setPageName] = useState('testPage');
|
||||
const [tableName, setTableName] = useState('testTable');
|
||||
const {settingStore, hideAction, filterAction, sortAction,} = useTableSetting();
|
||||
|
||||
const DrawerHeader = styled('div')(({theme}) => ({
|
||||
@@ -100,7 +100,7 @@ function FilterColumn({columns}) {
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
console.log(settingStore?.[userId]?.[pageName]?.[tableName]?.['filters'])
|
||||
return (
|
||||
<>
|
||||
<Tooltip title="فیلتر">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {ClickAwayListener, List, ListItem, ListItemIcon, ListItemText, Paper, Popper} from '@mui/material';
|
||||
import {ClickAwayListener, List, ListItem, ListItemText, Paper, Popper} from '@mui/material';
|
||||
import {useState} from "react";
|
||||
|
||||
const columnFilterModeOptionFa = {
|
||||
@@ -10,15 +10,6 @@ const columnFilterModeOptionFa = {
|
||||
fuzzy: "فازی",
|
||||
}
|
||||
|
||||
const columnFilterModeOptionSymbol = {
|
||||
equals: "=",
|
||||
notEquals: "≠",
|
||||
contains: "*",
|
||||
lessThan: "<",
|
||||
greaterThan: ">",
|
||||
fuzzy: "≈",
|
||||
}
|
||||
|
||||
function FilterBox({
|
||||
anchorEl, open = false, handleClose = () => {
|
||||
}, columnFilterModeOptions, onSelectFilter, defaultFilter
|
||||
@@ -42,7 +33,6 @@ 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