Skip to content

Commit

Permalink
rm mini header
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzius committed Dec 12, 2024
1 parent f8b2554 commit 0428ef3
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions src/screens/Profile/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -90,8 +87,6 @@ export {ProfileHeader}

const MinimalHeader = React.memo(function MinimalHeader({
onLayout,
profile,
hideBackButton,
}: {
onLayout: (e: LayoutChangeEvent) => void
profile: AppBskyActorDefs.ProfileViewDetailed
Expand Down Expand Up @@ -159,19 +154,8 @@ const MinimalHeader = React.memo(function MinimalHeader({
paddingTop: insets.top,
},
animatedStyle,
]}>
<Header.Outer>
{!hideBackButton && <Header.BackButton />}
<Header.Content align="left">
<Header.TitleText>
{sanitizeDisplayName(profile.displayName || profile.handle)}
</Header.TitleText>
<Header.SubtitleText>
{sanitizeHandle(profile.handle, '@')}
</Header.SubtitleText>
</Header.Content>
</Header.Outer>
</Animated.View>
]}
/>
)
})
MinimalHeader.displayName = 'MinimalHeader'
Expand Down

0 comments on commit 0428ef3

Please sign in to comment.