From f58a7fafa12269035d440cfa2d8cb1dbd562305f Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 10 Dec 2024 21:09:50 -0600 Subject: [PATCH] Playing around --- src/components/Button.tsx | 1 + src/components/Layout/Header/index.tsx | 3 +- .../components/ProfileSubpageHeader.tsx | 250 +++++++++++------- 3 files changed, 164 insertions(+), 90 deletions(-) diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 871c17ed51..db51e51f2d 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -76,6 +76,7 @@ export type ButtonProps = Pick< | 'onHoverOut' | 'onPressIn' | 'onPressOut' + | 'onLayout' > & AccessibilityProps & VariantProps & { diff --git a/src/components/Layout/Header/index.tsx b/src/components/Layout/Header/index.tsx index 321f7201f7..d6f8f1c1f9 100644 --- a/src/components/Layout/Header/index.tsx +++ b/src/components/Layout/Header/index.tsx @@ -74,6 +74,7 @@ export function Content({ style={[ a.flex_1, a.justify_center, + a.z_20, isIOS && align === 'platform' && a.align_center, {minHeight: HEADER_SLOT_SIZE}, ]}> @@ -88,7 +89,7 @@ export function Slot({children}: {children?: React.ReactNode}) { return ( - - - - - + + {avatar && ( + + )} + + + {/* Should roughly matchl Layout.Header.TitleText */} + + {title} + + {/* Should roughly matchl Layout.Header.SubtitleText */} + + + By {sanitizeHandle(creator.handle, '@')} + + {' • '} + + {plural(likeCount, { + one: '# like', + other: '# likes', + })} + + + + + + + + )} + + - - - - - + + + + + + ) }