mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
fix(FE): integrate search filter marketing
This commit is contained in:
@@ -187,7 +187,6 @@ const MarketingTable = () => {
|
||||
} = useSelect(ProductApi.basePath, 'id', 'name', '', {
|
||||
limit: 'limit',
|
||||
});
|
||||
|
||||
const {
|
||||
options: customersOptions,
|
||||
isLoadingOptions: isLoadingCustomersOptions,
|
||||
@@ -203,7 +202,8 @@ const MarketingTable = () => {
|
||||
const searchChangeHandler = useCallback(
|
||||
(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
setSearch(e.target.value);
|
||||
setPage(1);
|
||||
updateFilter('page', 1);
|
||||
updateFilter('search', e.target.value);
|
||||
},
|
||||
[]
|
||||
);
|
||||
@@ -734,6 +734,7 @@ const MarketingTable = () => {
|
||||
'px-6 py-3 last:flex last:flex-row last:justify-end',
|
||||
paginationClassName: 'hidden',
|
||||
}}
|
||||
isLoading={isLoadingMarketing}
|
||||
/>
|
||||
</Modal>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user