diff options
author | João Ferreiro <ferreiro@pinkroom.dev> | 2022-12-15 15:53:18 +0000 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-12-19 19:26:54 -0600 |
commit | 723bad1a28ef6dc659708a47c58b916cd3447c2b (patch) | |
tree | 31051890bd29263a251ff1617fe871cb5c1b20f8 /src | |
parent | 469b05c4be712acad389f6fb0c0b65f32466a36a (diff) | |
download | voidsky-723bad1a28ef6dc659708a47c58b916cd3447c2b.tar.zst |
minor fix
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/util/RichText.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/view/com/util/RichText.tsx b/src/view/com/util/RichText.tsx index 1f6d9cbcd..66b0e2536 100644 --- a/src/view/com/util/RichText.tsx +++ b/src/view/com/util/RichText.tsx @@ -28,9 +28,9 @@ export function RichText({ fontSize: 26, lineHeight: 30, } - return <Text style={[style]}>{text}</Text> + return <Text style={style}>{text}</Text> } - return <Text style={[style]}>{text}</Text> + return <Text style={style}>{text}</Text> } if (!style) style = [] else if (!Array.isArray(style)) style = [style] @@ -65,7 +65,7 @@ export function RichText({ key++ } return ( - <Text style={[style]} numberOfLines={numberOfLines}> + <Text style={style} numberOfLines={numberOfLines}> {els} </Text> ) |