Some fixes for API log error

This commit is contained in:
Clément Le Bihan
2023-11-28 17:55:40 +01:00
parent 7f282e2ec5
commit 00433ee7ba
3 changed files with 16 additions and 11 deletions
+2 -4
View File
@@ -148,10 +148,7 @@ const ButtonBase: React.FC<ButtonProps> = ({
)}
{iconImage && <Image source={{ uri: iconImage }} style={styles.icon} />}
{title && (
<Text
style={[styles.text, type === 'filled' ? { color: '#fff' } : {}]}
selectable={false}
>
<Text style={[styles.text, type === 'filled' ? { color: '#fff' } : {}]}>
{title}
</Text>
)}
@@ -176,6 +173,7 @@ const styles = StyleSheet.create({
height: 18,
},
text: {
userSelect: 'none',
marginHorizontal: 8,
},
});
+8 -2
View File
@@ -72,7 +72,7 @@ const ScaffoldAuth: FunctionComponent<ScaffoldAuthProps> = ({
<Row space={2} flex={1}>
<Image
source={{ uri: logo?.at(0)?.uri }}
alt='Chromacase logo'
alt="Chromacase logo"
style={{
aspectRatio: 1,
width: 32,
@@ -80,7 +80,13 @@ const ScaffoldAuth: FunctionComponent<ScaffoldAuthProps> = ({
}}
/>
{layout.width > 650 && (
<Text fontSize={'xl'} selectable={false}>
<Text
fontSize={'xl'}
style={{
// @ts-expect-error - RNW does not have userSelect
userSelect: 'none',
}}
>
ChromaCase
</Text>
)}