fleet/frontend/utilities/platform_icon_class.js
Gabe Hernandez efb35b537a
add prettier and have it format all fleet application code (#625)
* add prettier and have it format all js code except website:
:

* trying running prettier check in CI

* fix runs on in CI

* change CI job name

* fix prettier erros and fix CI
2021-04-12 14:32:25 +01:00

38 lines
1.1 KiB
JavaScript

export const platformIconClass = (platform = "") => {
if (!platform) return false;
const lowerPlatform = platform.toLowerCase();
switch (lowerPlatform) {
case "macos":
return "[email protected]";
case "mac os x":
return "[email protected]";
case "mac osx":
return "[email protected]";
case "mac os":
return "[email protected]";
case "darwin":
return "[email protected]";
case "apple":
return "[email protected]";
case "centos":
return "[email protected]";
case "centos linux":
return "[email protected]";
case "ubuntu":
return "[email protected]";
case "ubuntu linux":
return "[email protected]";
case "linux":
return "[email protected]";
case "windows":
return "[email protected]";
case "ms windows":
return "[email protected]";
default:
return false;
}
};
export default platformIconClass;