@department-of-veterans-affairs/caseflow-frontend-toolkit
Advanced tools
Comparing version 2.5.7 to 2.5.8
@@ -49,3 +49,2 @@ import React from 'react'; | ||
defaultUrl, | ||
defaultHref, | ||
dropdownUrls, | ||
@@ -57,10 +56,3 @@ topMessage, | ||
} = this.props; | ||
const logoLinkProps = {}; | ||
if (defaultUrl) { | ||
logoLinkProps.to = defaultUrl; | ||
} else if (defaultHref) { | ||
logoLinkProps.href = defaultHref; | ||
} | ||
return <div> | ||
@@ -73,8 +65,10 @@ <header {...headerStyling}> | ||
<h1 {...h1Styling}> | ||
<Link id="cf-logo-link" {...logoLinkProps}> | ||
<Link id="cf-logo-link" href="/"> | ||
Caseflow | ||
</Link> | ||
{appName && <Link to={defaultUrl}> | ||
<h2 id="page-title" className="cf-application-title" {...STYLES.APPLICATION_TITLE}> | ||
{appName && `> ${appName}`} | ||
> {appName} | ||
</h2> | ||
</Link> | ||
</Link>} | ||
</h1> | ||
@@ -118,5 +112,4 @@ <Breadcrumbs> | ||
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.7", | ||
"version": "2.5.8", | ||
"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
289384
1211