Enforce Text suffix for Text-rendering components (#3407)
* Rm unused * Add Text suffix to Title/Description * Add Text suffix to text components * Add Text suffix to props * Validate Text components returns
This commit is contained in:
parent
c190fd58ec
commit
3915bb4316
43 changed files with 453 additions and 366 deletions
|
|
@ -6,12 +6,12 @@ import {Text} from '#/components/Typography'
|
|||
|
||||
export function FormContainer({
|
||||
testID,
|
||||
title,
|
||||
titleText,
|
||||
children,
|
||||
style,
|
||||
}: {
|
||||
testID?: string
|
||||
title?: React.ReactNode
|
||||
titleText?: React.ReactNode
|
||||
children: React.ReactNode
|
||||
style?: StyleProp<ViewStyle>
|
||||
}) {
|
||||
|
|
@ -21,9 +21,9 @@ export function FormContainer({
|
|||
<View
|
||||
testID={testID}
|
||||
style={[a.gap_md, a.flex_1, !gtMobile && [a.px_lg, a.py_md], style]}>
|
||||
{title && !gtMobile && (
|
||||
{titleText && !gtMobile && (
|
||||
<Text style={[a.text_xl, a.font_bold, t.atoms.text_contrast_high]}>
|
||||
{title}
|
||||
{titleText}
|
||||
</Text>
|
||||
)}
|
||||
{children}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue