Skip to content

Commit

Permalink
Update logo linkProps
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrahoang686 committed Oct 21, 2024
1 parent 96dfb4a commit 06b3a01
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/scripts/components/common/page-header/logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,19 +100,16 @@ const PageTitleSecLink = styled.a`

export default function Logo ({ linkProperties }: { linkProperties: LinkProperties }) {
const LinkElement: ComponentType<any> = linkProperties.LinkElement as ComponentType<any>;
const linkProps = {
[linkProperties.pathAttributeKeyName]: '/'
};

return (
<ComponentOverride with='headerBrand'>
<Brand>
<LinkElement {...linkProps}>
<LinkElement {...{[linkProperties.pathAttributeKeyName]: '/'}}>
<NasaLogo />
<span>Earthdata</span> <span>{appTitle}</span>
</LinkElement>
<Tip content={`v${appVersion}`}>
<PageTitleSecLink as={LinkElement} href='/development'>Beta</PageTitleSecLink>
<PageTitleSecLink {...{as: linkProperties.LinkElement as ComponentType<any>, [linkProperties.pathAttributeKeyName]: '/development'}}>Beta</PageTitleSecLink>
</Tip>
</Brand>
</ComponentOverride>);
Expand Down

0 comments on commit 06b3a01

Please sign in to comment.