about summary refs log tree commit diff
path: root/src/view/shell/mobile/index.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-09-29 10:40:05 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-09-29 10:40:05 -0500
commit8ff5f81f2400b3f963ba62e0d04d98d5170d0d98 (patch)
treeba14292606081e9ae34c7c306a44c441b497f6cf /src/view/shell/mobile/index.tsx
parentfc776c26526d1a76e03f9a5a4e64fffee7229f27 (diff)
downloadvoidsky-8ff5f81f2400b3f963ba62e0d04d98d5170d0d98.tar.zst
Light icons
Diffstat (limited to 'src/view/shell/mobile/index.tsx')
-rw-r--r--src/view/shell/mobile/index.tsx14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/view/shell/mobile/index.tsx b/src/view/shell/mobile/index.tsx
index 17ae47ed9..4acbbfd93 100644
--- a/src/view/shell/mobile/index.tsx
+++ b/src/view/shell/mobile/index.tsx
@@ -33,6 +33,7 @@ import {createBackMenu, createForwardMenu} from './history-menu'
 import {createAccountsMenu} from './accounts-menu'
 import {createLocationMenu} from './location-menu'
 import {s, colors} from '../../lib/styles'
+import {GridIcon, HomeIcon} from '../../lib/icons'
 import {DEF_AVATER} from '../../lib/assets'
 
 const locationIconNeedsNudgeUp = (icon: IconProp) => icon === 'house'
@@ -85,10 +86,19 @@ const Btn = ({
   onPress?: (event: GestureResponderEvent) => void
   onLongPress?: (event: GestureResponderEvent) => void
 }) => {
+  let IconEl
+  if (icon === 'bars') {
+    IconEl = GridIcon
+  } else if (icon === 'house') {
+    IconEl = HomeIcon
+  } else {
+    IconEl = FontAwesomeIcon
+  }
+
   if (inactive) {
     return (
       <View style={styles.ctrl}>
-        <FontAwesomeIcon
+        <IconEl
           size={21}
           style={[styles.ctrlIcon, styles.inactive]}
           icon={icon}
@@ -101,7 +111,7 @@ const Btn = ({
       style={styles.ctrl}
       onPress={onPress}
       onLongPress={onLongPress}>
-      <FontAwesomeIcon size={21} style={styles.ctrlIcon} icon={icon} />
+      <IconEl size={21} style={styles.ctrlIcon} icon={icon} />
     </TouchableOpacity>
   )
 }