Remove use of flatten where possible (#9325)

* remove use of flatten where possible

* restore flatten where it says it's needed

* missing utils alpha
This commit is contained in:
Samuel Newman
2025-11-04 15:43:08 +02:00
committed by GitHub
parent 0bcde99025
commit 1b0fbd503e
28 changed files with 67 additions and 97 deletions
+2 -11
View File
@@ -10,7 +10,6 @@ import {useOnboardingDispatch} from '#/state/shell'
import {Context} from '#/screens/Onboarding/state'
import {
atoms as a,
flatten,
native,
type TextStyleProp,
tokens,
@@ -228,13 +227,7 @@ export function TitleText({
}: React.PropsWithChildren<TextStyleProp>) {
return (
<Text
style={[
a.pb_sm,
a.text_4xl,
a.font_semi_bold,
a.leading_tight,
flatten(style),
]}>
style={[a.pb_sm, a.text_4xl, a.font_semi_bold, a.leading_tight, style]}>
{children}
</Text>
)
@@ -245,7 +238,5 @@ export function DescriptionText({
style,
}: React.PropsWithChildren<TextStyleProp>) {
const t = useTheme()
return (
<P style={[t.atoms.text_contrast_medium, flatten(style)]}>{children}</P>
)
return <P style={[t.atoms.text_contrast_medium, style]}>{children}</P>
}