diff --git a/src/screens/Profile/Header/index.tsx b/src/screens/Profile/Header/index.tsx index 8e9a290bef..7272c4745a 100644 --- a/src/screens/Profile/Header/index.tsx +++ b/src/screens/Profile/Header/index.tsx @@ -15,14 +15,11 @@ import { } from '@atproto/api' import {useIsFocused} from '@react-navigation/native' -import {sanitizeDisplayName} from '#/lib/strings/display-names' -import {sanitizeHandle} from '#/lib/strings/handles' import {isNative} from '#/platform/detection' import {useLightStatusBar} from '#/state/shell/light-status-bar' import {usePagerHeaderContext} from '#/view/com/pager/PagerHeaderContext' import {LoadingPlaceholder} from '#/view/com/util/LoadingPlaceholder' import {atoms as a, useTheme} from '#/alf' -import {Header} from '#/components/Layout' import {ProfileHeaderLabeler} from './ProfileHeaderLabeler' import {ProfileHeaderStandard} from './ProfileHeaderStandard' @@ -90,8 +87,6 @@ export {ProfileHeader} const MinimalHeader = React.memo(function MinimalHeader({ onLayout, - profile, - hideBackButton, }: { onLayout: (e: LayoutChangeEvent) => void profile: AppBskyActorDefs.ProfileViewDetailed @@ -159,19 +154,8 @@ const MinimalHeader = React.memo(function MinimalHeader({ paddingTop: insets.top, }, animatedStyle, - ]}> - - {!hideBackButton && } - - - {sanitizeDisplayName(profile.displayName || profile.handle)} - - - {sanitizeHandle(profile.handle, '@')} - - - - + ]} + /> ) }) MinimalHeader.displayName = 'MinimalHeader'