From 222c7ab62e57f7dec41d8a14de3768ee9a63fc8e Mon Sep 17 00:00:00 2001
From: Michael <michael.foiani@gmail.com>
Date: Fri, 2 Jul 2021 15:56:56 -0400
Subject: Remove comments added from pr review. Also, clean some code that was
 suggested from pr review.

---
 src/components/common/NavigationIcon.tsx | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

(limited to 'src/components/common/NavigationIcon.tsx')

diff --git a/src/components/common/NavigationIcon.tsx b/src/components/common/NavigationIcon.tsx
index f97bb861..debb36b3 100644
--- a/src/components/common/NavigationIcon.tsx
+++ b/src/components/common/NavigationIcon.tsx
@@ -69,22 +69,15 @@ const NavigationIcon = (props: NavigationIconProps) => {
   return (
     <View style={styles.container}>
       <TouchableOpacity {...props}>
-        <Image source={imgSrc} style={getStyles(props.isBigger ?? false)} />
+        <Image
+          source={imgSrc}
+          style={props.isBigger ? styles.biggerIcon : styles.icon}
+        />
       </TouchableOpacity>
     </View>
   );
 };
 
-const getStyles = (isBigger: boolean) =>
-  isBigger ? biggerIconStyles.icon : styles.icon;
-
-const biggerIconStyles = StyleSheet.create({
-  icon: {
-    height: 44,
-    width: 44,
-  },
-});
-
 const styles = StyleSheet.create({
   container: {
     flex: 1,
@@ -101,6 +94,10 @@ const styles = StyleSheet.create({
     height: 28,
     width: 28,
   },
+  biggerIcon: {
+    height: 44,
+    width: 44,
+  },
 });
 
 export default NavigationIcon;
-- 
cgit v1.2.3-70-g09d2

