@department-of-veterans-affairs/caseflow-frontend-toolkit
Advanced tools
Comparing version 2.5.6 to 2.5.7
@@ -49,2 +49,3 @@ import React from 'react'; | ||
defaultUrl, | ||
defaultHref, | ||
dropdownUrls, | ||
@@ -56,3 +57,10 @@ topMessage, | ||
} = this.props; | ||
const logoLinkProps = {}; | ||
if (defaultUrl) { | ||
logoLinkProps.to = defaultUrl; | ||
} else if (defaultHref) { | ||
logoLinkProps.href = defaultHref; | ||
} | ||
return <div> | ||
@@ -65,6 +73,6 @@ <header {...headerStyling}> | ||
<h1 {...h1Styling}> | ||
<Link id="cf-logo-link" to={defaultUrl}> | ||
<Link id="cf-logo-link" {...logoLinkProps}> | ||
Caseflow | ||
<h2 id="page-title" className="cf-application-title" {...STYLES.APPLICATION_TITLE}> | ||
{appName} | ||
{appName && `> ${appName}`} | ||
</h2> | ||
@@ -109,5 +117,6 @@ </Link> | ||
extraBanner: PropTypes.element, | ||
defaultUrl: PropTypes.string.isRequired, | ||
defaultUrl: PropTypes.string, | ||
defaultHref: PropTypes.string, | ||
userDisplayName: PropTypes.string.isRequired, | ||
appName: PropTypes.string.isRequired | ||
}; |
{ | ||
"name": "@department-of-veterans-affairs/caseflow-frontend-toolkit", | ||
"version": "2.5.6", | ||
"version": "2.5.7", | ||
"description": "Build tools and React components for the Caseflow frontends", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
288161
1217