Ádding Select, Options to Coral Ui and steps with formField

This commit is contained in:
Belen Curcio
2017-02-02 11:31:43 -03:00
parent ad8d92a8ea
commit 65aa5e7e92
15 changed files with 230 additions and 102 deletions
+5 -2
View File
@@ -1,8 +1,9 @@
import React, {PropTypes} from 'react';
import styles from './WizardNav.css';
import Icon from './Icon';
const WizardNav = props => {
const {goToStep, currentStep, items} = props;
const {goToStep, currentStep, items, icon} = props;
return (
<nav className={styles.WizardNav}>
<ul>
@@ -12,7 +13,9 @@ const WizardNav = props => {
key={i}
className={`${currentStep === item.step ? styles.active : ''} ${item.step < currentStep ? styles.done : ''}`}
onClick={() => goToStep(item.step)}>
{item.text}<span/>
{item.text}
{icon && <Icon name={icon} />}
<span/>
</li>
))
}