Default id for MenuContent
This commit is contained in:
parent
101df4cbf1
commit
3cbb489ac6
|
@ -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';
|
||||||
|
|
||||||
|
@ -47,7 +48,8 @@ MenuContent.propTypes = {
|
||||||
};
|
};
|
||||||
|
|
||||||
MenuContent.defaultProps = {
|
MenuContent.defaultProps = {
|
||||||
className: styles.menuContent
|
className: styles.menuContent,
|
||||||
|
id: getUniqueElementId()
|
||||||
};
|
};
|
||||||
|
|
||||||
export default MenuContent;
|
export default MenuContent;
|
||||||
|
|
Loading…
Reference in New Issue