add link text
This commit is contained in:
1 parent
b64cf3f6b6
commit
b78b584844
3 files changed
+50
-39
No files matched your search
@@ -10,7 +10,7 @@ interface TextLinkProps extends StackProps {
|
||||
text: string;
|
||||
linkText: string;
|
||||
href: string;
|
||||
target?: string;
|
||||
target?: "_self" | "_blank" | "_parent" | "_top";
|
||||
}
|
||||
|
||||
export const TextLink = ({
|
||||
@@ -34,6 +34,7 @@ export const TextLink = ({
|
||||
to={href}
|
||||
component={RouterLink}
|
||||
target={target}
|
||||
{...(target === "_blank" && { rel: "noopener noreferrer" })}
|
||||
>
|
||||
{linkText}
|
||||
</Link>
|
||||
|
||||
Reference in new issue
Block a user