diff --git a/src/assets/images/do-not-use.png b/src/assets/images/do-not-use.png new file mode 100644 index 000000000..20dbef8ea Binary files /dev/null and b/src/assets/images/do-not-use.png differ diff --git a/src/assets/images/identified.png b/src/assets/images/identified.png new file mode 100644 index 000000000..16fbe18f0 Binary files /dev/null and b/src/assets/images/identified.png differ diff --git a/src/assets/images/no-license.png b/src/assets/images/no-license.png new file mode 100644 index 000000000..9a9f0d74d Binary files /dev/null and b/src/assets/images/no-license.png differ diff --git a/src/assets/images/not-cleared.png b/src/assets/images/not-cleared.png new file mode 100644 index 000000000..6d2f1726d Binary files /dev/null and b/src/assets/images/not-cleared.png differ diff --git a/src/assets/images/to-be-discussed.png b/src/assets/images/to-be-discussed.png new file mode 100644 index 000000000..1df9fafb9 Binary files /dev/null and b/src/assets/images/to-be-discussed.png differ diff --git a/src/pages/BrowseUploads/LicenseBrowser/index.jsx b/src/pages/BrowseUploads/LicenseBrowser/index.jsx index 6cface0e4..15d64499c 100644 --- a/src/pages/BrowseUploads/LicenseBrowser/index.jsx +++ b/src/pages/BrowseUploads/LicenseBrowser/index.jsx @@ -34,6 +34,13 @@ import { getUploadSummary, getUploadLicense } from "services/upload"; // Helper function for error handling import { handleError } from "shared/helper"; +// Clearing status Assests +import DoNotUse from "../../../assets/images/do-not-use.png"; +import Identified from "../../../assets/images/identified.png"; +import NoLicense from "../../../assets/images/no-license.png"; +import NotCleared from "../../../assets/images/not-cleared.png"; +import ToBeDiscussed from "../../../assets/images/to-be-discussed.png"; + const LicenseBrowser = () => { // Setting the upload Id const [uploadId, setuploadId] = useState(); @@ -86,6 +93,17 @@ const LicenseBrowser = () => { } }, [uploadId]); + function getClearingImage(status, scanner) { + if (scanner[0] === "No_license_found") return NoLicense; + if (status === "DO_NOT_USE") return DoNotUse; + if (status === "IRRELEVANT") return Identified; + if (status === "IDENTIFIED") return Identified; + if (status === "NON_FUNCTIONAL") return DoNotUse; + if (status === "not_found") return NotCleared; + if (status === "TO_BE_DISCUSSED") return ToBeDiscussed; + return NoLicense; + } + return ( <>