aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/ui/text.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/instant/src/components/ui/text.tsx')
-rw-r--r--packages/instant/src/components/ui/text.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/components/ui/text.tsx b/packages/instant/src/components/ui/text.tsx
index 3dba11c74..fd14cc4d1 100644
--- a/packages/instant/src/components/ui/text.tsx
+++ b/packages/instant/src/components/ui/text.tsx
@@ -25,7 +25,7 @@ export interface TextProps {
}
export const Text: React.StatelessComponent<TextProps> = ({ href, onClick, ...rest }) => {
- const computedOnClick = href ? util.createHrefOnClick(href) : onClick;
+ const computedOnClick = href ? util.createOpenUrlInNewWindow(href) : onClick;
return <StyledText {...rest} onClick={computedOnClick} />;
};