mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-16 08:24:16 +02:00
properly handle weight prop on Text and TextTitle
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user