diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-26 11:25:52 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-26 11:25:52 -0600 |
commit | 7e3f6f030680a8cf7b5baa3ce6f33acd5766fca8 (patch) | |
tree | 38ad7a0c586caa6cd0635653cb812d602210b718 /src/view/com/util/error/ErrorMessage.tsx | |
parent | c4ba5e7fd507a2f5295fd3fcbcea0796223c744c (diff) | |
download | voidsky-7e3f6f030680a8cf7b5baa3ce6f33acd5766fca8.tar.zst |
Fix all type errors
Diffstat (limited to 'src/view/com/util/error/ErrorMessage.tsx')
-rw-r--r-- | src/view/com/util/error/ErrorMessage.tsx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/view/com/util/error/ErrorMessage.tsx b/src/view/com/util/error/ErrorMessage.tsx index 684e93fca..a6d77326e 100644 --- a/src/view/com/util/error/ErrorMessage.tsx +++ b/src/view/com/util/error/ErrorMessage.tsx @@ -6,7 +6,10 @@ import { View, ViewStyle, } from 'react-native' -import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' +import { + FontAwesomeIcon, + FontAwesomeIconStyle, +} from '@fortawesome/react-native-fontawesome' import {Text} from '../text/Text' import {useTheme} from '../../../lib/ThemeContext' import {usePalette} from '../../../lib/hooks/usePalette' @@ -28,7 +31,11 @@ export function ErrorMessage({ <View testID="errorMessageView" style={[styles.outer, pal.view, style]}> <View style={[styles.errorIcon, {backgroundColor: theme.palette.error.icon}]}> - <FontAwesomeIcon icon="exclamation" style={pal.text} size={16} /> + <FontAwesomeIcon + icon="exclamation" + style={pal.text as FontAwesomeIconStyle} + size={16} + /> </View> <Text type="sm" |