actionAdminOrdersSearchPage.js 424 B

123456789
  1. import { actionFeedCats, actionFeedCatsFind, actionFeedClear, actionFeedOrdersFind, actionPromiseClear } from "../reducers";
  2. export const actionAdminOrdersSearchPage =
  3. ({ orderBy = "_id", text, status }) =>
  4. async (dispatch, getState) => {
  5. dispatch(actionFeedClear());
  6. dispatch(actionPromiseClear("feedOrdersFind"));
  7. dispatch(actionFeedOrdersFind({ text, orderBy, skip: 0, status }));
  8. };