Skip to content

Commit e06f9ab

Browse files
committed
refactor: minor tweak to the link component for consistency
1 parent 5789e97 commit e06f9ab

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/link/link.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if (__DEV__) {
66
RRouter = require('react-router');
77
}
88

9-
const Link = ({ to, ...props }) => {
9+
export default ({ to, ...props }) => {
1010
if (startsWith(to, 'http') || startsWith(to, '//')) {
1111
return <a href={to} target="_blank" {...props} />;
1212
}
@@ -17,5 +17,3 @@ const Link = ({ to, ...props }) => {
1717

1818
return <a href={to} {...props} />;
1919
};
20-
21-
export default Link;

0 commit comments

Comments
 (0)