We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d231920 commit 9ec76dbCopy full SHA for 9ec76db
1 file changed
app/component-library/components-temp/SectionHeader/SectionHeader.tsx
@@ -55,7 +55,7 @@ const SectionHeader: React.FC<SectionHeaderProps> = ({
55
const tw = useTailwind();
56
57
return (
58
- <View style={style} testID={testID}>
+ <View style={style} testID={onPress ? undefined : testID}>
59
<Box paddingHorizontal={4} twClassName={twClassName}>
60
<Box
61
flexDirection={BoxFlexDirection.Row}
@@ -84,6 +84,7 @@ const SectionHeader: React.FC<SectionHeaderProps> = ({
84
{/* Right side: Icon in circle — touch handled by parent TouchableOpacity */}
85
{onPress && (
86
<TouchableOpacity
87
+ testID={testID}
88
onPress={onPress}
89
disabled={!onPress}
90
accessibilityRole="button"
0 commit comments