File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/components/AboutModal Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ AboutModal.propTypes = {
5151 show : PropTypes . bool . isRequired ,
5252 /** Function to call when modal is closed */
5353 onHide : PropTypes . func . isRequired ,
54- /** Text to show for the product title */
55- productTitle : PropTypes . string ,
54+ /** Text or Element to show for the product title */
55+ productTitle : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . node ] ) ,
5656 /** Image Source for the Product logo */
5757 logo : PropTypes . string ,
5858 /** Alternate text if invalid logo */
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React from 'react';
22import { Button } from '../../Button' ;
33import { AboutModal } from '../index' ;
44import logo from 'patternfly/dist/img/logo-alt.svg' ;
5+ import productTitle from 'patternfly/dist/img/brand-alt.svg' ;
56
67export class MockAboutModal extends React . Component {
78 constructor ( ) {
@@ -26,7 +27,7 @@ export class MockAboutModal extends React.Component {
2627 < AboutModal
2728 show = { this . state . showModal }
2829 onHide = { this . close }
29- productTitle = "Product Title"
30+ productTitle = { < img src = { productTitle } alt = "Product Title" /> }
3031 logo = { logo }
3132 altLogo = "Patternfly Logo"
3233 trademarkText = "Trademark and Copyright Information"
You can’t perform that action at this time.
0 commit comments