Skip to content

Commit

Permalink
[grid] Adding Android logo
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
diemol committed Sep 16, 2021
1 parent a03780c commit 17c0c01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions javascript/grid-ui/src/util/os-logo.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import androidLogo from '../assets/operating-systems/android.svg'
import macLogo from '../assets/operating-systems/mac.svg'
import windowsLogo from '../assets/operating-systems/windows.svg'
import linuxLogo from '../assets/operating-systems/linux.svg'
Expand All @@ -12,10 +13,14 @@ const osLogo = (os: string): string => {
if (osLowerCase.includes('win')) {
return windowsLogo
}
if (osLowerCase.includes('mac')) {
if (osLowerCase.includes('android')) {
return androidLogo
}
if (osLowerCase.includes('mac') || osLowerCase.includes('ios')) {
return macLogo
}
if (osLowerCase.includes('nix') || osLowerCase.includes('nux') || osLowerCase.includes('aix')) {
if (osLowerCase.includes('nix') || osLowerCase.includes('nux')
|| osLowerCase.includes('aix')) {
return linuxLogo
}
return unknownOsLogo
Expand Down

0 comments on commit 17c0c01

Please sign in to comment.