From 6db9d09b73ba6a011a54e7fd3bfad9a0f7ed2abe Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 10 Dec 2024 21:09:59 -0600 Subject: [PATCH] Revert "Playing around" This reverts commit f58a7fafa12269035d440cfa2d8cb1dbd562305f. --- src/components/Button.tsx | 1 - src/components/Layout/Header/index.tsx | 3 +- .../components/ProfileSubpageHeader.tsx | 252 +++++++----------- 3 files changed, 91 insertions(+), 165 deletions(-) diff --git a/src/components/Button.tsx b/src/components/Button.tsx index db51e51f2d..871c17ed51 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -76,7 +76,6 @@ 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 d6f8f1c1f9..321f7201f7 100644 --- a/src/components/Layout/Header/index.tsx +++ b/src/components/Layout/Header/index.tsx @@ -74,7 +74,6 @@ export function Content({ style={[ a.flex_1, a.justify_center, - a.z_20, isIOS && align === 'platform' && a.align_center, {minHeight: HEADER_SLOT_SIZE}, ]}> @@ -89,7 +88,7 @@ export function Slot({children}: {children?: React.ReactNode}) { return ( - {open && !isWeb && ( - - )} + + + + + + - - {avatar && ( - - )} - - - {/* Should roughly matchl Layout.Header.TitleText */} - - {title} - - {/* Should roughly matchl Layout.Header.SubtitleText */} - - - By {sanitizeHandle(creator.handle, '@')} - - {' • '} - - {plural(likeCount, { - one: '# like', - other: '# likes', - })} - - - - - - - - )} - - - - - - - - - + + + + + ) }