QualificationsPage: search by code and name
This commit is contained in:
parent
715c6a7e67
commit
2d2ab01497
|
@ -3,8 +3,8 @@ import { useLocation } from 'react-router-dom';
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import { Route } from 'config/routing';
|
import { Route } from 'config/routing';
|
||||||
import { Route as NavRoute } from './components/Nav/types';
|
import { Route as NavRoute } from './components/Nav/types';
|
||||||
import { useTheme } from '@material-ui/core/styles';
|
|
||||||
|
|
||||||
|
import { useTheme } from '@material-ui/core/styles';
|
||||||
import {
|
import {
|
||||||
SwipeableDrawer,
|
SwipeableDrawer,
|
||||||
DrawerProps,
|
DrawerProps,
|
||||||
|
|
|
@ -18,7 +18,10 @@ const useQualifications = (
|
||||||
sort: [sort],
|
sort: [sort],
|
||||||
limit,
|
limit,
|
||||||
filter: {
|
filter: {
|
||||||
nameIEQ: '%' + search + '%',
|
or: {
|
||||||
|
nameIEQ: '%' + search + '%',
|
||||||
|
codeIEQ: '%' + search + '%',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Reference in New Issue
Block a user