1
0
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:
Mark Stacey 2020-05-05 15:02:53 -03:00 committed by GitHub
parent 28af32a84c
commit 48d29e679b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
}