mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 20:12:41 +02:00
Fixed: Default id for MenuContent
This commit is contained in:
parent
ee91cb99ce
commit
e0b6bde525
@ -1,5 +1,6 @@
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
import getUniqueElementId from 'Utilities/getUniqueElementId';
|
||||||
import Scroller from 'Components/Scroller/Scroller';
|
import Scroller from 'Components/Scroller/Scroller';
|
||||||
import styles from './MenuContent.css';
|
import styles from './MenuContent.css';
|
||||||
|
|
||||||
@ -40,14 +41,15 @@ class MenuContent extends Component {
|
|||||||
MenuContent.propTypes = {
|
MenuContent.propTypes = {
|
||||||
forwardedRef: PropTypes.func,
|
forwardedRef: PropTypes.func,
|
||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
id: PropTypes.string,
|
id: PropTypes.string.isRequired,
|
||||||
children: PropTypes.node.isRequired,
|
children: PropTypes.node.isRequired,
|
||||||
style: PropTypes.object,
|
style: PropTypes.object,
|
||||||
isOpen: PropTypes.bool
|
isOpen: PropTypes.bool
|
||||||
};
|
};
|
||||||
|
|
||||||
MenuContent.defaultProps = {
|
MenuContent.defaultProps = {
|
||||||
className: styles.menuContent
|
className: styles.menuContent,
|
||||||
|
id: getUniqueElementId()
|
||||||
};
|
};
|
||||||
|
|
||||||
export default MenuContent;
|
export default MenuContent;
|
||||||
|
Loading…
Reference in New Issue
Block a user