Remove criticity on assets
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -8,16 +8,3 @@ export const getAssetTypeVariant = (type: string) => {
|
||||
return "neutral";
|
||||
}
|
||||
};
|
||||
|
||||
export const getCriticityVariant = (criticity: string) => {
|
||||
switch (criticity) {
|
||||
case "HIGH":
|
||||
return "danger";
|
||||
case "MEDIUM":
|
||||
return "warning";
|
||||
case "LOW":
|
||||
return "neutral";
|
||||
default:
|
||||
return "neutral";
|
||||
}
|
||||
};
|
||||
|
||||
@@ -21,7 +21,7 @@ export {
|
||||
} from "./countries";
|
||||
export { availableFrameworks } from "./frameworks";
|
||||
export { getDocumentTypeLabel, documentTypes } from "./documents";
|
||||
export { getAssetTypeVariant, getCriticityVariant } from "./assets";
|
||||
export { getAssetTypeVariant } from "./assets";
|
||||
export {
|
||||
getSnapshotTypeLabel,
|
||||
getSnapshotTypeUrlPath,
|
||||
|
||||
Reference in New Issue
Block a user