mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 12:27:45 +01:00
Merge pull request #399 from orangemug/fix/added-default-prop
Added default isActive prop to Collapse component
This commit is contained in:
commit
aa50785c12
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,10 @@ export default class CollapseAlt extends React.Component {
|
||||||
children: PropTypes.element.isRequired
|
children: PropTypes.element.isRequired
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static defaultProps = {
|
||||||
|
isActive: true
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
if (accessibility.reducedMotionEnabled()) {
|
if (accessibility.reducedMotionEnabled()) {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue