Skip to content

Commit

Permalink
Update CroppedImage PropTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurnford committed Jan 3, 2020
1 parent 7946bde commit 6341bcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fixes [#2776](https://github.com/microsoft/BotFramework-WebChat/issues/2776). Wait until button is shown/hid before taking screenshot
- Use a new timeout `fetchImage` for images
- Fixes [#2780](https://github.com/microsoft/BotFramework-WebChat/issues/2780). Added the `tel` protocol to the `allowedSchema` in the `sanitize-html` options, by [@tdurnford](https://github.com/tdurnford) in PR [#27XX](https://github.com/microsoft/BotFramework-WebChat/pull/27XX)
- Fixes [#2647](https://github.com/microsoft/BotFramework-WebChat/issues/2647). Update the `CroppedImage` component `PropType`, by [@tdurnford](https://github.com/tdurnford) in PR [#27XX](https://github.com/microsoft/BotFramework-WebChat/pull/27XX)

### Changed

Expand Down
2 changes: 1 addition & 1 deletion packages/component/src/Utils/CroppedImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ CroppedImage.defaultProps = {
CroppedImage.propTypes = {
alt: PropTypes.string,
className: PropTypes.string,
height: PropTypes.number.isRequired,
height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
src: PropTypes.string.isRequired,
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
};
Expand Down

0 comments on commit 6341bcf

Please sign in to comment.