Revert unused Header change
This commit is contained in:
@@ -1,29 +1,24 @@
|
|||||||
import {createContext, useCallback, useContext} from 'react'
|
import {createContext, useCallback, useContext} from 'react'
|
||||||
import {
|
import {GestureResponderEvent, Keyboard, View} from 'react-native'
|
||||||
type GestureResponderEvent,
|
|
||||||
Keyboard,
|
|
||||||
View,
|
|
||||||
type ViewProps,
|
|
||||||
} from 'react-native'
|
|
||||||
import {msg} from '@lingui/macro'
|
import {msg} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {useNavigation} from '@react-navigation/native'
|
import {useNavigation} from '@react-navigation/native'
|
||||||
|
|
||||||
import {HITSLOP_30} from '#/lib/constants'
|
import {HITSLOP_30} from '#/lib/constants'
|
||||||
import {type NavigationProp} from '#/lib/routes/types'
|
import {NavigationProp} from '#/lib/routes/types'
|
||||||
import {isIOS} from '#/platform/detection'
|
import {isIOS} from '#/platform/detection'
|
||||||
import {useSetDrawerOpen} from '#/state/shell'
|
import {useSetDrawerOpen} from '#/state/shell'
|
||||||
import {
|
import {
|
||||||
atoms as a,
|
atoms as a,
|
||||||
platform,
|
platform,
|
||||||
type TextStyleProp,
|
TextStyleProp,
|
||||||
useBreakpoints,
|
useBreakpoints,
|
||||||
useGutters,
|
useGutters,
|
||||||
useLayoutBreakpoints,
|
useLayoutBreakpoints,
|
||||||
useTheme,
|
useTheme,
|
||||||
web,
|
web,
|
||||||
} from '#/alf'
|
} from '#/alf'
|
||||||
import {Button, ButtonIcon, type ButtonProps} from '#/components/Button'
|
import {Button, ButtonIcon, ButtonProps} from '#/components/Button'
|
||||||
import {ArrowLeft_Stroke2_Corner0_Rounded as ArrowLeft} from '#/components/icons/Arrow'
|
import {ArrowLeft_Stroke2_Corner0_Rounded as ArrowLeft} from '#/components/icons/Arrow'
|
||||||
import {Menu_Stroke2_Corner0_Rounded as Menu} from '#/components/icons/Menu'
|
import {Menu_Stroke2_Corner0_Rounded as Menu} from '#/components/icons/Menu'
|
||||||
import {
|
import {
|
||||||
@@ -40,13 +35,11 @@ export function Outer({
|
|||||||
noBottomBorder,
|
noBottomBorder,
|
||||||
headerRef,
|
headerRef,
|
||||||
sticky = true,
|
sticky = true,
|
||||||
onLayout,
|
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode
|
||||||
noBottomBorder?: boolean
|
noBottomBorder?: boolean
|
||||||
headerRef?: React.MutableRefObject<View | null>
|
headerRef?: React.MutableRefObject<View | null>
|
||||||
sticky?: boolean
|
sticky?: boolean
|
||||||
onLayout?: ViewProps['onLayout']
|
|
||||||
}) {
|
}) {
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
const gutters = useGutters([0, 'base'])
|
const gutters = useGutters([0, 'base'])
|
||||||
@@ -57,7 +50,6 @@ export function Outer({
|
|||||||
return (
|
return (
|
||||||
<View
|
<View
|
||||||
ref={headerRef}
|
ref={headerRef}
|
||||||
onLayout={onLayout}
|
|
||||||
style={[
|
style={[
|
||||||
a.w_full,
|
a.w_full,
|
||||||
!noBottomBorder && a.border_b,
|
!noBottomBorder && a.border_b,
|
||||||
|
|||||||
Reference in New Issue
Block a user