Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
0.8.0 - Use menuStructure array to declare menu
Browse files Browse the repository at this point in the history
  • Loading branch information
jducro committed Jan 7, 2019
1 parent a8bea37 commit e4c1fed
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 117 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.8.0 - 2019-01-07

* Use menuStructure array to declare menu

## 0.7.0 - 2018-12-07

* Add `SlaStatusInput`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deskpro/token-field",
"version": "0.7.0-beta.5",
"version": "0.8.0",
"description": "",
"main": "dist/index.js",
"private": false,
Expand Down
3 changes: 3 additions & 0 deletions src/Components/TokenField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default class TokenField extends React.Component {
props: PropTypes.object,
description: PropTypes.string,
})).isRequired,
menuStructure: PropTypes.array,
onChange: PropTypes.func,
onFocus: PropTypes.func,
onBlur: PropTypes.func,
Expand All @@ -43,6 +44,7 @@ export default class TokenField extends React.Component {
blurTimeout: 300,
showTokensOnFocus: false,
popupOpen: false,
menuStructure: [],
};

constructor(props) {
Expand Down Expand Up @@ -105,6 +107,7 @@ export default class TokenField extends React.Component {
key={key}
tokenKey={key}
tokenTypes={this.props.tokenTypes}
menuStructure={this.props.menuStructure}
currentValue={this.state.value}
addToken={this.addTokenAndFocus}
onChange={this.handleTokenChange}
Expand Down

0 comments on commit e4c1fed

Please sign in to comment.