Skip to content

Commit

Permalink
Pass extra props to composer
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Jun 29, 2018
1 parent 16996f9 commit 7525dab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.1.1] - 2018-06-29
### Fixed:
- fix: `extra` prop not passed to `<Composer>`

## [1.1.0] - 2018-06-29
### Added
- Added `extra` prop to copy to `SpeechRecognition`
Expand Down
2 changes: 2 additions & 0 deletions packages/component/src/DictateButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default class DictateButton extends React.Component {

return (
<Composer
extra={ props.extra }
grammar={ props.grammar }
lang={ props.lang }
onDictate={ this.handleDictate }
Expand Down Expand Up @@ -72,6 +73,7 @@ export default class DictateButton extends React.Component {
DictateButton.propTypes = {
className: PropTypes.string,
disabled: PropTypes.bool,
extra: PropTypes.any,
grammar: PropTypes.string,
lang: PropTypes.string,
onDictate: PropTypes.func,
Expand Down
2 changes: 2 additions & 0 deletions packages/component/src/DictateCheckbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default class DictateCheckbox extends React.Component {

return (
<Composer
extra={ props.extra }
grammar={ props.grammar }
lang={ props.lang }
onDictate={ this.handleDictate }
Expand Down Expand Up @@ -75,6 +76,7 @@ export default class DictateCheckbox extends React.Component {
DictateCheckbox.propTypes = {
className: PropTypes.string,
disabled: PropTypes.bool,
extra: PropTypes.any,
grammar: PropTypes.string,
lang: PropTypes.string,
onDictate: PropTypes.func,
Expand Down

0 comments on commit 7525dab

Please sign in to comment.