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,
|
||||
onClose,
|
||||
className,
|
||||
contentClassName,
|
||||
showArrow,
|
||||
CustomBackground,
|
||||
}) => {
|
||||
@ -52,7 +53,7 @@ const Popover = ({
|
||||
{
|
||||
children
|
||||
? (
|
||||
<div className="popover-content">
|
||||
<div className={classnames('popover-content', contentClassName)}>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
@ -81,6 +82,7 @@ Popover.propTypes = {
|
||||
onBack: PropTypes.func,
|
||||
onClose: PropTypes.func.isRequired,
|
||||
CustomBackground: PropTypes.func,
|
||||
contentClassName: PropTypes.string,
|
||||
className: PropTypes.string,
|
||||
showArrow: PropTypes.bool,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user