properly handle weight prop on Text and TextTitle

This commit is contained in:
jeffvli
2025-09-29 00:34:27 -07:00
parent 1bbbe56901
commit 6a48bcf236
2 changed files with 4 additions and 0 deletions
@@ -25,6 +25,7 @@ const _TextTitle = ({
isMuted, isMuted,
isNoSelect, isNoSelect,
overflow, overflow,
weight,
...rest ...rest
}: TextTitleProps) => { }: TextTitleProps) => {
return ( return (
@@ -39,6 +40,7 @@ const _TextTitle = ({
}, },
className, className,
)} )}
fw={weight}
{...rest} {...rest}
> >
{children} {children}
+2
View File
@@ -28,6 +28,7 @@ export const _Text = ({
isMuted, isMuted,
isNoSelect, isNoSelect,
overflow, overflow,
weight,
...rest ...rest
}: TextProps) => { }: TextProps) => {
return ( return (
@@ -39,6 +40,7 @@ export const _Text = ({
[styles.overflowHidden]: overflow === 'hidden', [styles.overflowHidden]: overflow === 'hidden',
})} })}
component="div" component="div"
fw={weight}
style={ style={
{ {
'--font-family': font, '--font-family': font,