Revert settings component changes
This commit is contained in:
@@ -2,7 +2,7 @@ import React, {useContext, useMemo} from 'react'
|
|||||||
import {GestureResponderEvent, StyleProp, View, ViewStyle} from 'react-native'
|
import {GestureResponderEvent, StyleProp, View, ViewStyle} from 'react-native'
|
||||||
|
|
||||||
import {HITSLOP_10} from '#/lib/constants'
|
import {HITSLOP_10} from '#/lib/constants'
|
||||||
import {atoms as a, useGutterStyles,useTheme, ViewStyleProp} from '#/alf'
|
import {atoms as a, useTheme, ViewStyleProp} from '#/alf'
|
||||||
import * as Button from '#/components/Button'
|
import * as Button from '#/components/Button'
|
||||||
import {ChevronRight_Stroke2_Corner0_Rounded as ChevronRightIcon} from '#/components/icons/Chevron'
|
import {ChevronRight_Stroke2_Corner0_Rounded as ChevronRightIcon} from '#/components/icons/Chevron'
|
||||||
import {Link, LinkProps} from '#/components/Link'
|
import {Link, LinkProps} from '#/components/Link'
|
||||||
@@ -80,7 +80,6 @@ export function Item({
|
|||||||
iconInset?: boolean
|
iconInset?: boolean
|
||||||
style?: StyleProp<ViewStyle>
|
style?: StyleProp<ViewStyle>
|
||||||
}) {
|
}) {
|
||||||
const gutter = useGutterStyles()
|
|
||||||
const context = useContext(ItemContext)
|
const context = useContext(ItemContext)
|
||||||
const childContext = useMemo(() => {
|
const childContext = useMemo(() => {
|
||||||
if (typeof destructive !== 'boolean') return context
|
if (typeof destructive !== 'boolean') return context
|
||||||
@@ -89,7 +88,7 @@ export function Item({
|
|||||||
return (
|
return (
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
gutter,
|
a.px_xl,
|
||||||
a.py_sm,
|
a.py_sm,
|
||||||
a.align_center,
|
a.align_center,
|
||||||
a.gap_md,
|
a.gap_md,
|
||||||
|
|||||||
Reference in New Issue
Block a user