mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
properly handle weight prop on Text and TextTitle
This commit is contained in:
@@ -25,6 +25,7 @@ const _TextTitle = ({
|
||||
isMuted,
|
||||
isNoSelect,
|
||||
overflow,
|
||||
weight,
|
||||
...rest
|
||||
}: TextTitleProps) => {
|
||||
return (
|
||||
@@ -39,6 +40,7 @@ const _TextTitle = ({
|
||||
},
|
||||
className,
|
||||
)}
|
||||
fw={weight}
|
||||
{...rest}
|
||||
>
|
||||
{children}
|
||||
|
||||
@@ -28,6 +28,7 @@ export const _Text = ({
|
||||
isMuted,
|
||||
isNoSelect,
|
||||
overflow,
|
||||
weight,
|
||||
...rest
|
||||
}: TextProps) => {
|
||||
return (
|
||||
@@ -39,6 +40,7 @@ export const _Text = ({
|
||||
[styles.overflowHidden]: overflow === 'hidden',
|
||||
})}
|
||||
component="div"
|
||||
fw={weight}
|
||||
style={
|
||||
{
|
||||
'--font-family': font,
|
||||
|
||||
Reference in New Issue
Block a user