mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix font weight
This commit is contained in:
@ -23,7 +23,7 @@ const CustomText: React.FC<Props & TextProps> = ({
|
||||
style,
|
||||
fontStyle,
|
||||
fontSize,
|
||||
fontWeight = 'Normal',
|
||||
fontWeight,
|
||||
lineHeight,
|
||||
...rest
|
||||
}) => {
|
||||
@ -46,9 +46,11 @@ const CustomText: React.FC<Props & TextProps> = ({
|
||||
})
|
||||
},
|
||||
{
|
||||
fontWeight: boldTextEnabled
|
||||
? BoldMapping[fontWeight]
|
||||
: StyleConstants.Font.Weight[fontWeight]
|
||||
fontWeight: fontWeight
|
||||
? boldTextEnabled
|
||||
? BoldMapping[fontWeight]
|
||||
: StyleConstants.Font.Weight[fontWeight]
|
||||
: undefined
|
||||
}
|
||||
]}
|
||||
{...rest}
|
||||
|
Reference in New Issue
Block a user