mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-06 08:24:46 +00:00
fix(settings): preserve page title test contract
This commit is contained in:
@@ -32,9 +32,11 @@ export function PageLayout({ title, onBack, testID, titleTestID, children }: Pag
|
||||
<ScrollView style={styles.scroll} contentContainerStyle={scrollContentStyle} testID={testID}>
|
||||
<View style={styles.content}>
|
||||
{showTitle ? (
|
||||
<Text style={styles.title} testID={titleTestID ?? "page-title"}>
|
||||
{title}
|
||||
</Text>
|
||||
<View testID={titleTestID}>
|
||||
<Text style={styles.title} testID="page-title">
|
||||
{title}
|
||||
</Text>
|
||||
</View>
|
||||
) : null}
|
||||
{children}
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user