Rm button

This commit is contained in:
Eric Bailey
2025-07-16 12:06:31 -05:00
parent cac4d535db
commit c657cd6cae
+2 -16
View File
@@ -12,10 +12,6 @@ import {useSession} from '#/state/session'
import {useShellLayout} from '#/state/shell/shell-layout'
import {Logo} from '#/view/icons/Logo'
import {atoms as a, useTheme} from '#/alf'
import {
AgeAssuranceDismissibleHeaderButton,
useInternalState,
} from '#/components/ageAssurance/AgeAssuranceDismissibleHeaderButton'
import {ButtonIcon} from '#/components/Button'
import {Hashtag_Stroke2_Corner0_Rounded as FeedsIcon} from '#/components/icons/Hashtag'
import * as Layout from '#/components/Layout'
@@ -33,7 +29,6 @@ export function HomeHeaderLayoutMobile({
const headerMinimalShellTransform = useMinimalShellHeaderTransform()
const {hasSession} = useSession()
const playHaptic = useHaptics()
const {visible: aaButtonVisible} = useInternalState()
return (
<Animated.View
@@ -56,25 +51,17 @@ export function HomeHeaderLayoutMobile({
<Layout.Header.MenuButton />
</Layout.Header.Slot>
<View style={[a.flex_1]} />
<View style={[a.absolute, a.inset_0, a.align_center, a.justify_center]}>
<View style={[a.flex_1, a.align_center]}>
<PressableScale
targetScale={0.9}
onPress={() => {
playHaptic('Light')
emitSoftReset()
}}
style={{top: -2}}>
}}>
<Logo width={30} />
</PressableScale>
</View>
{aaButtonVisible ? (
<View style={{right: -4}}>
<AgeAssuranceDismissibleHeaderButton />
</View>
) : (
<Layout.Header.Slot>
{hasSession && (
<Link
@@ -94,7 +81,6 @@ export function HomeHeaderLayoutMobile({
</Link>
)}
</Layout.Header.Slot>
)}
</Layout.Header.Outer>
{children}
</Animated.View>