Fix eslint warnings.
parent
ff47e38845
commit
ba8d899d5d
@ -1,8 +1,10 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { pure } from 'recompose';
|
import { pure } from 'recompose';
|
||||||
|
|
||||||
export const ExternalLink = pure((props: any) => (
|
export const ExternalLink = pure(({children, ...props}: any) => (
|
||||||
<a target="_blank" rel="noopener" {...props} />
|
<a target="_blank" rel="noopener" {...props}>
|
||||||
|
{children}
|
||||||
|
</a>
|
||||||
));
|
));
|
||||||
|
|
||||||
export default ExternalLink;
|
export default ExternalLink;
|
||||||
|
Loading…
Reference in New Issue