Show unresolved RT prior to facet resolution

This commit is contained in:
Eric Bailey
2024-06-14 14:19:42 -05:00
parent b25af44850
commit 7ab0c85791
+1 -22
View File
@@ -94,31 +94,10 @@ export function TitleAndByline({
}
export function Description({description}: {description?: string}) {
const t = useTheme()
const [rt, isResolving] = useRichText(description || '')
if (!description) return null
return isResolving ? (
<View style={[a.gap_xs]}>
<View
style={[
a.rounded_2xs,
t.atoms.bg_contrast_25,
{
height: a.text_sm.fontSize - a.gap_xs.gap,
},
]}
/>
<View
style={[
a.rounded_2xs,
t.atoms.bg_contrast_25,
{
height: a.text_sm.fontSize - a.gap_xs.gap,
width: '60%',
},
]}
/>
</View>
<RichText value={description} style={[a.leading_snug]} />
) : (
<RichText value={rt} style={[a.leading_snug]} />
)