From 9440068b6924df699b617380cb14c304d2d55ae5 Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Thu, 14 Aug 2025 19:54:27 +0200 Subject: Profile back button tweaks for web (#8795) * Profile back button tweaks * apply review feedback - remove StyleSheet * Update src/screens/Profile/Header/Shell.tsx --------- Co-authored-by: Samuel Newman --- src/screens/Profile/Header/Shell.tsx | 96 +++++++++++++++--------------------- 1 file changed, 41 insertions(+), 55 deletions(-) (limited to 'src') diff --git a/src/screens/Profile/Header/Shell.tsx b/src/screens/Profile/Header/Shell.tsx index 27962ba05..167be0aa8 100644 --- a/src/screens/Profile/Header/Shell.tsx +++ b/src/screens/Profile/Header/Shell.tsx @@ -1,5 +1,5 @@ import {memo, useCallback, useEffect, useMemo} from 'react' -import {StyleSheet, TouchableWithoutFeedback, View} from 'react-native' +import {TouchableWithoutFeedback, View} from 'react-native' import Animated, { measure, type MeasuredDimensions, @@ -26,6 +26,8 @@ import {LoadingPlaceholder} from '#/view/com/util/LoadingPlaceholder' import {UserAvatar} from '#/view/com/util/UserAvatar' import {UserBanner} from '#/view/com/util/UserBanner' import {atoms as a, platform, useTheme} from '#/alf' +import {transparentifyColor} from '#/alf/util/colorGeneration' +import {Button} from '#/components/Button' import {useDialogControl} from '#/components/Dialog' import {ArrowLeft_Stroke2_Corner0_Rounded as ArrowLeftIcon} from '#/components/icons/Arrow' import {EditLiveDialog} from '#/components/live/EditLiveDialog' @@ -148,30 +150,46 @@ let ProfileHeaderShell = ({ - {!hideBackButton && ( - + !hideBackButton && ( + + ) }> {isPlaceholderProfile ? ( )} - + ) } + ProfileHeaderShell = memo(ProfileHeaderShell) export {ProfileHeaderShell} - -const styles = StyleSheet.create({ - backBtnWrapper: { - position: 'absolute', - left: 12, - width: 30, - height: 30, - overflow: 'hidden', - borderRadius: 15, - cursor: 'pointer', - backgroundColor: 'rgba(0, 0, 0, 0.5)', - alignItems: 'center', - justifyContent: 'center', - }, - backBtn: { - width: 30, - height: 30, - borderRadius: 15, - alignItems: 'center', - justifyContent: 'center', - }, - aviPosition: { - position: 'absolute', - top: 104, - left: 10, - }, - avi: { - width: 94, - height: 94, - }, - aviLabeler: { - borderRadius: 10, - }, -}) -- cgit 1.4.1