Better example for links
parent
e1b9c6f8b4
commit
97ca9d68c9
|
@ -40,6 +40,14 @@ class Tab extends React.Component {
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
active (value) {
|
||||||
|
this.setState({active: value});
|
||||||
|
if (this.props.onActive && value) {
|
||||||
|
this.props.onActive(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Tab;
|
export default Tab;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
const LinksTest = () => (
|
const LinksTest = () => (
|
||||||
<nav>
|
<nav>
|
||||||
<Link href="/#/components/link" label="Work" count={4} icon='business' />
|
<Link href="#/components/link" label="Work" count={4} icon='business' />
|
||||||
<Link href="/#/components/link" label="Blog" icon='speaker-notes' />
|
<Link href="#/components/link" label="Blog" icon='speaker-notes' />
|
||||||
<Link href="/#/components/link" label="Explore" icon='explore' />
|
<Link href="#/components/link" label="Explore" icon='explore' />
|
||||||
</nav>
|
</nav>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue