diff options
author | Caidan Williams <caidan@internet.dev> | 2025-07-24 18:38:10 -0700 |
---|---|---|
committer | Caidan Williams <caidan@internet.dev> | 2025-07-29 17:37:01 -0700 |
commit | ff4eecc2e4c485c5fddf763008bf46b0148eac0a (patch) | |
tree | f98e1478784a585e4996e767280d4aa1af8138c7 /src/components/ProfileCard.tsx | |
parent | 2a6d04e6e203430fad61ed87cbbfa8e6836e70a5 (diff) | |
download | voidsky-ff4eecc2e4c485c5fddf763008bf46b0148eac0a.tar.zst |
feat: update ProfileCard.Description to take style prop
Diffstat (limited to 'src/components/ProfileCard.tsx')
-rw-r--r-- | src/components/ProfileCard.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/ProfileCard.tsx b/src/components/ProfileCard.tsx index b2d4d16fb..4e135c8a2 100644 --- a/src/components/ProfileCard.tsx +++ b/src/components/ProfileCard.tsx @@ -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 /> |