From e50bb3517122afb190d5ec281a8ef8ec0a6198b6 Mon Sep 17 00:00:00 2001 From: lizagilman Date: Mon, 28 Jan 2019 23:49:38 +0200 Subject: [PATCH] fix(BadgedResource): don't restrict resourceName to a string (#1260) --- .../src/components/BadgedResource/BadgedResource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/patternfly-3/patternfly-react-extensions/src/components/BadgedResource/BadgedResource.js b/packages/patternfly-3/patternfly-react-extensions/src/components/BadgedResource/BadgedResource.js index d0d271598fc..db477b369cb 100644 --- a/packages/patternfly-3/patternfly-react-extensions/src/components/BadgedResource/BadgedResource.js +++ b/packages/patternfly-3/patternfly-react-extensions/src/components/BadgedResource/BadgedResource.js @@ -99,7 +99,7 @@ BadgedResource.propTypes = { /** Full name of the resource kind to display in the badge tooltip and for screen readers (defaulted if valid resourceKind is given) */ kindStr: PropTypes.string, /** Name of the resource */ - resourceName: PropTypes.string, + resourceName: PropTypes.oneOfType([PropTypes.string, PropTypes.node]), /** Flag for large version */ large: PropTypes.bool, /** Delay in ms for the tooltip (-1 to use title rather than a tooltip) */