feat: update ProfileCard.Description to take style prop

This commit is contained in:
Caidan Williams
2025-07-24 18:38:10 -07:00
parent 2a6d04e6e2
commit ff4eecc2e4
+3 -2
View File
@@ -354,10 +354,11 @@ export function NameAndHandlePlaceholder() {
export function Description({ export function Description({
profile: profileUnshadowed, profile: profileUnshadowed,
numberOfLines = 3, numberOfLines = 3,
style,
}: { }: {
profile: bsky.profile.AnyProfileView profile: bsky.profile.AnyProfileView
numberOfLines?: number numberOfLines?: number
}) { } & TextStyleProp) {
const profile = useProfileShadow(profileUnshadowed) const profile = useProfileShadow(profileUnshadowed)
const rt = useMemo(() => { const rt = useMemo(() => {
if (!('description' in profile)) return if (!('description' in profile)) return
@@ -377,7 +378,7 @@ export function Description({
<View style={[a.pt_xs]}> <View style={[a.pt_xs]}>
<RichText <RichText
value={rt} value={rt}
style={[a.leading_snug]} style={[a.leading_snug, style]}
numberOfLines={numberOfLines} numberOfLines={numberOfLines}
disableLinks disableLinks
/> />