diff --git a/src/ActionBar/ActionBar.Component.js b/src/ActionBar/ActionBar.Component.js index dc81d87d5..5a4b2ac75 100644 --- a/src/ActionBar/ActionBar.Component.js +++ b/src/ActionBar/ActionBar.Component.js @@ -4,7 +4,7 @@ import { DocsTile, DocsText, Separator, Header, Description, Import, Properties export const ActionBarComponent = () => { const actionBarBackBtnCode = ` - + @@ -115,7 +115,7 @@ const clickBackBtn = () => { description: 'string - Action bar description. Specified in ActionBarHeader.' }, { - name: 'onclick', + name: 'onClick', description: 'func - The function that is executed when the back button is clicked.' } ]} /> @@ -125,7 +125,7 @@ const clickBackBtn = () => {

Action bar with back button, description and action buttons.

- + diff --git a/src/ActionBar/ActionBar.js b/src/ActionBar/ActionBar.js index d8d405646..f0ed5c777 100644 --- a/src/ActionBar/ActionBar.js +++ b/src/ActionBar/ActionBar.js @@ -1,44 +1,44 @@ import React from 'react'; import PropTypes from 'prop-types'; -export const ActionBar = props => { - const { mobile, width, children } = props; +export const ActionBar = ({ mobile, width, children, className, ...props }) => { return ( {mobile ? (
-
{children}
+
{children}
) : ( -
{children}
+
{children}
)}
); }; ActionBar.propTypes = { + className: PropTypes.string, mobile: PropTypes.bool, width: PropTypes.string }; -export const ActionBarBack = props => { - const { onclick } = props; +export const ActionBarBack = ({ onClick, className, ...props }) => { + return ( -
-
); }; ActionBarBack.propTypes = { - onclick: PropTypes.func + className: PropTypes.string, + onClick: PropTypes.func }; -export const ActionBarHeader = props => { - const { title, description } = props; +export const ActionBarHeader = ({ title, description, className, ...props }) => { return ( -
+

{title}

{description}

@@ -46,11 +46,11 @@ export const ActionBarHeader = props => { }; ActionBarHeader.propTypes = { + className: PropTypes.string, description: PropTypes.string, title: PropTypes.string }; -export const ActionBarActions = props => { - const { children } = props; - return
{children}
; +export const ActionBarActions = ({ children, className, ...props }) => { + return
{children}
; }; diff --git a/src/Alert/Alert.js b/src/Alert/Alert.js index 308af265e..f88a40f21 100644 --- a/src/Alert/Alert.js +++ b/src/Alert/Alert.js @@ -16,16 +16,16 @@ export class Alert extends Component { } render() { - const { type, link, linkText, dismissable, children } = this.props; + const { type, link, linkText, dismissable, children, className, ...props } = this.props; return (
{this.state.isActive && (