QualificationsPage: search by code and name

This commit is contained in:
Dawid Wysokiński 2021-03-12 16:09:51 +01:00
parent 715c6a7e67
commit 2d2ab01497
2 changed files with 5 additions and 2 deletions

View File

@ -3,8 +3,8 @@ import { useLocation } from 'react-router-dom';
import clsx from 'clsx';
import { Route } from 'config/routing';
import { Route as NavRoute } from './components/Nav/types';
import { useTheme } from '@material-ui/core/styles';
import { useTheme } from '@material-ui/core/styles';
import {
SwipeableDrawer,
DrawerProps,

View File

@ -18,7 +18,10 @@ const useQualifications = (
sort: [sort],
limit,
filter: {
nameIEQ: '%' + search + '%',
or: {
nameIEQ: '%' + search + '%',
codeIEQ: '%' + search + '%',
},
},
},
});