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