From 7e3f6f030680a8cf7b5baa3ce6f33acd5766fca8 Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Thu, 26 Jan 2023 11:25:52 -0600
Subject: Fix all type errors

---
 src/view/com/composer/ComposePost.tsx | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

(limited to 'src/view/com/composer/ComposePost.tsx')

diff --git a/src/view/com/composer/ComposePost.tsx b/src/view/com/composer/ComposePost.tsx
index a414a7562..64e75328a 100644
--- a/src/view/com/composer/ComposePost.tsx
+++ b/src/view/com/composer/ComposePost.tsx
@@ -16,7 +16,10 @@ import PasteInput, {
   PasteInputRef,
 } from '@mattermost/react-native-paste-input'
 import LinearGradient from 'react-native-linear-gradient'
-import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
+import {
+  FontAwesomeIcon,
+  FontAwesomeIconStyle,
+} from '@fortawesome/react-native-fontawesome'
 import {useAnalytics} from '@segment/analytics-react-native'
 import {UserAutocompleteViewModel} from '../../../state/models/user-autocomplete-view'
 import {Autocomplete} from './Autocomplete'
@@ -438,7 +441,11 @@ export const ComposePost = observer(function ComposePost({
               hitSlop={HITSLOP}>
               <FontAwesomeIcon
                 icon={['far', 'image']}
-                style={selectedPhotos.length < 4 ? pal.link : pal.textLight}
+                style={
+                  (selectedPhotos.length < 4
+                    ? pal.link
+                    : pal.textLight) as FontAwesomeIconStyle
+                }
                 size={24}
               />
             </TouchableOpacity>
-- 
cgit 1.4.1

