mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add Popover contentClassName
prop (#8514)
This class is set on the Popover content. This was required for an upcoming PR (the last permissions system alert).
This commit is contained in:
parent
28af32a84c
commit
48d29e679b
@ -13,6 +13,7 @@ const Popover = ({
|
|||||||
onBack,
|
onBack,
|
||||||
onClose,
|
onClose,
|
||||||
className,
|
className,
|
||||||
|
contentClassName,
|
||||||
showArrow,
|
showArrow,
|
||||||
CustomBackground,
|
CustomBackground,
|
||||||
}) => {
|
}) => {
|
||||||
@ -52,7 +53,7 @@ const Popover = ({
|
|||||||
{
|
{
|
||||||
children
|
children
|
||||||
? (
|
? (
|
||||||
<div className="popover-content">
|
<div className={classnames('popover-content', contentClassName)}>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
@ -81,6 +82,7 @@ Popover.propTypes = {
|
|||||||
onBack: PropTypes.func,
|
onBack: PropTypes.func,
|
||||||
onClose: PropTypes.func.isRequired,
|
onClose: PropTypes.func.isRequired,
|
||||||
CustomBackground: PropTypes.func,
|
CustomBackground: PropTypes.func,
|
||||||
|
contentClassName: PropTypes.string,
|
||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
showArrow: PropTypes.bool,
|
showArrow: PropTypes.bool,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user