about summary refs log tree commit diff
path: root/src/components/ProfileCard.tsx
diff options
context:
space:
mode:
authorCaidan Williams <caidan@internet.dev>2025-07-24 18:38:10 -0700
committerCaidan Williams <caidan@internet.dev>2025-07-29 17:37:01 -0700
commitff4eecc2e4c485c5fddf763008bf46b0148eac0a (patch)
treef98e1478784a585e4996e767280d4aa1af8138c7 /src/components/ProfileCard.tsx
parent2a6d04e6e203430fad61ed87cbbfa8e6836e70a5 (diff)
downloadvoidsky-ff4eecc2e4c485c5fddf763008bf46b0148eac0a.tar.zst
feat: update ProfileCard.Description to take style prop
Diffstat (limited to 'src/components/ProfileCard.tsx')
-rw-r--r--src/components/ProfileCard.tsx5
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
       />