From 82402fa937d1a93e6b1b1cac4d123c854b3c9b46 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Date: Fri, 12 Jan 2018 08:36:51 -0500 Subject: [PATCH] fix(ToastNotificationList): do not override class toast-notifications-list-pf --- src/components/ToastNotification/ToastNotificationList.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/ToastNotification/ToastNotificationList.js b/src/components/ToastNotification/ToastNotificationList.js index 5d0d77b5a14..5f04dd14140 100644 --- a/src/components/ToastNotification/ToastNotificationList.js +++ b/src/components/ToastNotification/ToastNotificationList.js @@ -1,5 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; +import cx from 'classnames'; import { bindMethods } from '../../common/helpers'; import TimedToastNotification from './TimedToastNotification'; @@ -42,11 +43,13 @@ class ToastNotificationList extends React.Component { } render() { const { className } = this.props; + const classes = cx('toast-notifications-list-pf', className); + return (
{this.renderChildren()}
@@ -63,8 +66,5 @@ ToastNotificationList.propTypes = { /** children nodes */ children: PropTypes.node }; -ToastNotificationList.defaultProps = { - className: 'toast-notifications-list-pf' -}; export default ToastNotificationList;