commit cfde6677679be8a13b54018d1bb2c0ab2d31e301
parent b43943cf44c333ef4d5957eb0a29f830a530ebd7
Author: Konstantin Tarkus <koistya@gmail.com>
Date: Wed, 14 Oct 2015 00:08:16 +0300
Merge pull request #275 from zwhu/master
Fix static method error
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/Link/Link.js b/src/components/Link/Link.js
@@ -20,7 +20,7 @@ class Link extends Component {
onClick: PropTypes.func,
};
- static handleClick = event => {
+ static handleClick(event) {
let allowTransition = true;
let clickResult;
@@ -44,7 +44,7 @@ class Link extends Component {
this.props && this.props.state || null,
this.props && this.props.to || (link.pathname + link.search));
}
- };
+ }
render() {
const { to, children, ...props } = this.props;