🔎 Glorious universal library search first draft

This commit is contained in:
2022-05-26 22:52:07 -07:00
parent a2044941a6
commit 4ec45352e9
9 changed files with 108 additions and 65 deletions

View File

@@ -30,6 +30,7 @@ import {
LS_IMPORT_CALL_IN_PROGRESS,
LS_TOGGLE_IMPORT_QUEUE,
SS_SEARCH_FAILED,
SS_SEARCH_RESULTS_FETCHED_SPECIAL,
} from "../constants/action-types";
import { success } from "react-notification-system-redux";
import { removeLeadingPeriod } from "../shared/utils/formatting.utils";
@@ -298,6 +299,10 @@ export const searchIssue = (query, options) => async (dispatch) => {
type: SS_SEARCH_RESULTS_FETCHED,
data: response.data.body,
});
dispatch({
type: SS_SEARCH_RESULTS_FETCHED_SPECIAL,
data: response.data.body,
});
};
export const analyzeImage =
(imageFilePath: string | Buffer) => async (dispatch) => {