mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 02:16:03 +00:00
Use react-router links in left menu
This commit is contained in:
parent
0bb432ca9a
commit
95c04262d2
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user