Store for EditMeta modal (#3959)

* Store basics

* Tested
This commit is contained in:
Jaco Greeff
2016-12-27 11:02:53 +01:00
committed by Gav Wood
parent 002e8b00d4
commit 2bbefcd438
10 changed files with 493 additions and 97 deletions

View File

@@ -20,19 +20,24 @@ import ChipInput from 'material-ui-chip-input';
import { blue300 } from 'material-ui/styles/colors';
import { uniq } from 'lodash';
import { nodeOrStringProptype } from '~/util/proptypes';
import styles from './inputChip.css';
export default class InputChip extends Component {
static propTypes = {
tokens: PropTypes.array.isRequired,
addOnBlur: PropTypes.bool,
clearOnBlur: PropTypes.bool,
className: PropTypes.string,
hint: PropTypes.string,
label: PropTypes.string,
hint: nodeOrStringProptype(),
label: nodeOrStringProptype(),
onTokensChange: PropTypes.func,
onInputChange: PropTypes.func,
onBlur: PropTypes.func,
addOnBlur: PropTypes.bool,
clearOnBlur: PropTypes.bool
tokens: PropTypes.oneOfType([
PropTypes.array,
PropTypes.object
]).isRequired
}
static defaultProps = {