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 React, { Component } from 'react';
|
||||
import getUniqueElementId from 'Utilities/getUniqueElementId';
|
||||
import Scroller from 'Components/Scroller/Scroller';
|
||||
import styles from './MenuContent.css';
|
||||
|
||||
@ -40,14 +41,15 @@ class MenuContent extends Component {
|
||||
MenuContent.propTypes = {
|
||||
forwardedRef: PropTypes.func,
|
||||
className: PropTypes.string,
|
||||
id: PropTypes.string,
|
||||
id: PropTypes.string.isRequired,
|
||||
children: PropTypes.node.isRequired,
|
||||
style: PropTypes.object,
|
||||
isOpen: PropTypes.bool
|
||||
};
|
||||
|
||||
MenuContent.defaultProps = {
|
||||
className: styles.menuContent
|
||||
className: styles.menuContent,
|
||||
id: getUniqueElementId()
|
||||
};
|
||||
|
||||
export default MenuContent;
|
||||
|
Loading…
Reference in New Issue
Block a user