Skip to content

Commit 64bd277

Browse files
committed
chore: fixed typeErrors in text
1 parent d209fda commit 64bd277

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/components/ui/text/index.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ const Text = React.forwardRef<React.ComponentRef<typeof RNText>, ITextProps>(
2626
return (
2727
<RNText
2828
className={textStyle({
29-
isTruncated,
30-
bold,
31-
underline,
32-
strikeThrough,
33-
size,
34-
sub,
35-
italic,
36-
highlight,
29+
isTruncated: isTruncated as boolean,
30+
bold: bold as boolean,
31+
underline: underline as boolean,
32+
strikeThrough: strikeThrough as boolean,
33+
size: size as any,
34+
sub: sub as boolean,
35+
italic: italic as boolean,
36+
highlight: highlight as boolean,
3737
class: className,
3838
})}
3939
{...props}

src/components/ui/text/index.web.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ const Text = React.forwardRef<React.ComponentRef<'span'>, ITextProps>(
2323
return (
2424
<span
2525
className={textStyle({
26-
isTruncated,
27-
bold,
28-
underline,
29-
strikeThrough,
30-
size,
31-
sub,
32-
italic,
33-
highlight,
26+
isTruncated: isTruncated as boolean,
27+
bold: bold as boolean,
28+
underline: underline as boolean,
29+
strikeThrough: strikeThrough as boolean,
30+
size: size as any,
31+
sub: sub as boolean,
32+
italic: italic as boolean,
33+
highlight: highlight as boolean,
3434
class: className,
3535
})}
3636
{...props}

0 commit comments

Comments
 (0)