mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-06 13:40:22 +00:00
More correct way to define a property in propTypes
This commit is contained in:
parent
51c8c2d74a
commit
3dfe8a05a4
1 changed files with 1 additions and 4 deletions
|
|
@ -37,10 +37,7 @@ ModalDialog.propTypes = {
|
|||
className: PropTypes.string,
|
||||
title: PropTypes.string,
|
||||
buttons: PropTypes.arrayOf(PropTypes.shape({
|
||||
label: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.object,
|
||||
]),
|
||||
label: PropTypes.node,
|
||||
icon: PropTypes.string,
|
||||
props: PropTypes.object // Button.propTypes unfortunately these are not defined
|
||||
})),
|
||||
|
|
|
|||
Loading…
Reference in a new issue