We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e4e7bd commit 07eee68Copy full SHA for 07eee68
src/components/Link/Link.tsx
@@ -72,6 +72,7 @@ const LinkBlock = (props: WithChildren<LinkFullProps>) => {
72
);
73
case 'normal': {
74
const linkProps = getLinkProps(url, hostname, target);
75
+ const content = children || text;
76
77
return (
78
<a
@@ -80,16 +81,18 @@ const LinkBlock = (props: WithChildren<LinkFullProps>) => {
80
81
onClick={onClick}
82
{...linkProps}
83
>
- <span className={b('content')}>{children || text}</span>
84
- {arrow && (
+ {arrow ? (
85
<Fragment>
86
+ <span className={b('content')}>{content}</span>
87
{WORD_JOINER_SYM}
88
<Icon
89
className={b('arrow')}
90
data={Chevron}
91
size={getArrowSize(textSize)}
92
/>
93
</Fragment>
94
+ ) : (
95
+ content
96
)}
97
</a>
98
0 commit comments