Use react-router links in left menu

This commit is contained in:
Pierre BURGY 2016-08-25 10:47:15 +02:00
parent 0bb432ca9a
commit 95c04262d2

View File

@ -6,15 +6,16 @@
import React from 'react';
import styles from './styles.scss';
import { Link } from 'react-router';
class LeftMenuLink extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<li className={styles.leftMenuLink}>
<a className={styles.link} href={this.props.destination}>
<Link className={styles.link} to={this.props.destination}>
<i className={`${styles.linkIcon} ${this.props.icon} ion`}></i>
<span className={styles.linkLabel}>{this.props.label}</span>
</a>
</Link>
</li>
);
}