Replace the a tag with an ExternalLink component.
This lets us handle behaviour more consistently, for example by opening external links in a new tab.master
parent
ec8a1d9017
commit
a32002eabd
@ -0,0 +1,8 @@
|
|||||||
|
import * as React from 'react';
|
||||||
|
import { pure } from 'recompose';
|
||||||
|
|
||||||
|
export const ExternalLink = pure((props: any) => (
|
||||||
|
<a target="_blank" {...props} />
|
||||||
|
));
|
||||||
|
|
||||||
|
export default ExternalLink;
|
Loading…
Reference in New Issue