Skip to content

Commit

Permalink
fix: information box title type to support node
Browse files Browse the repository at this point in the history
  • Loading branch information
pphminions committed Jun 13, 2019
1 parent 65a04f8 commit fb5e38d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/examples/InformationBoxExample.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ const exampleProps = {
},
{
propType: 'title',
type: 'node',
},
{
propType: 'dts',
type: 'string',
},
],
Expand Down
7 changes: 4 additions & 3 deletions src/components/adslot-ui/InformationBox/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import SvgSymbol from 'alexandria/SvgSymbol';

require('./styles.scss');

const InformationBox = ({ children, icon, title, className }) => (
<div className={`information-box${className ? ` ${className}` : ''}`}>
const InformationBox = ({ children, icon, title, className, dts }) => (
<div className={`information-box${className ? ` ${className}` : ''}`} data-test-selector={dts}>
{icon ? (
<div className="information-box-icon">
{' '}
Expand All @@ -22,8 +22,9 @@ const InformationBox = ({ children, icon, title, className }) => (
InformationBox.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
title: PropTypes.string,
title: PropTypes.node,
icon: PropTypes.string,
dts: PropTypes.string,
};

export default InformationBox;

0 comments on commit fb5e38d

Please sign in to comment.