feat: update ProfileCard.Description to take style prop

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