Remove titleChild
This commit is contained in:
@@ -38,13 +38,11 @@ import {Text} from '#/components/Typography'
|
|||||||
|
|
||||||
function SuggestedItemsHeader({
|
function SuggestedItemsHeader({
|
||||||
title,
|
title,
|
||||||
titleChild,
|
|
||||||
description,
|
description,
|
||||||
style,
|
style,
|
||||||
icon: Icon,
|
icon: Icon,
|
||||||
}: {
|
}: {
|
||||||
title: string
|
title: string
|
||||||
titleChild?: React.ReactNode
|
|
||||||
description: string
|
description: string
|
||||||
icon: React.ComponentType<SVGIconProps>
|
icon: React.ComponentType<SVGIconProps>
|
||||||
} & ViewStyleProp) {
|
} & ViewStyleProp) {
|
||||||
@@ -68,7 +66,6 @@ function SuggestedItemsHeader({
|
|||||||
style={{marginLeft: -2}}
|
style={{marginLeft: -2}}
|
||||||
/>
|
/>
|
||||||
<Text style={[a.text_2xl, a.font_heavy, t.atoms.text]}>{title}</Text>
|
<Text style={[a.text_2xl, a.font_heavy, t.atoms.text]}>{title}</Text>
|
||||||
{titleChild}
|
|
||||||
</View>
|
</View>
|
||||||
<Text style={[t.atoms.text_contrast_high, a.leading_snug]}>
|
<Text style={[t.atoms.text_contrast_high, a.leading_snug]}>
|
||||||
{description}
|
{description}
|
||||||
|
|||||||
Reference in New Issue
Block a user