File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
app/scripts/components/common Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { getBannerFromVedaConfig, getCookieConsentFromVedaConfig } from 'veda';
1515import MetaTags from '../meta-tags' ;
1616import PageFooter from '../page-footer' ;
1717import PageFooterLegacy from '../page-footer-legacy' ;
18+ import NasaLogoColor from '../nasa-logo-color' ;
1819
1920const Banner = React . lazy ( ( ) => import ( '../banner' ) ) ;
2021const CookieConsent = React . lazy ( ( ) => import ( '../cookie-consent' ) ) ;
@@ -115,6 +116,7 @@ function LayoutRoot(props: { children?: ReactNode }) {
115116 footerPrimaryNavItems
116117 } }
117118 hideFooter = { hideFooter }
119+ logoSvg = { < NasaLogoColor /> }
118120 />
119121 ) : (
120122 < PageFooterLegacy hideFooter = { hideFooter } />
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { Icon } from '@trussworks/react-uswds' ;
3- //TO DO: need to move NasaLogoColor outside of component and pass down as props
4- import NasaLogoColor from '../../common/nasa-logo-color' ;
3+
54import {
65 USWDSFooter ,
76 USWDSFooterNav ,
@@ -13,13 +12,15 @@ interface PageFooterProps {
1312 primarySection : any ;
1413 settings : any ;
1514 hideFooter ?: boolean ;
15+ logoSvg ?: SVGElement | JSX . Element ;
1616}
1717//TODO: clean up PageFooterProps, Unexpected any. Specify a different interface.
1818
1919export default function PageFooter ( {
2020 settings,
2121 primarySection,
22- hideFooter
22+ hideFooter,
23+ logoSvg
2324} : PageFooterProps ) {
2425 const returnToTopButton = ( ) => {
2526 return (
@@ -82,7 +83,7 @@ export default function PageFooter({
8283 < div id = 'footer_secondary_container' className = 'grid-row' >
8384 < div id = 'logo-container' >
8485 < a id = 'logo-container-link' href = '#' >
85- < NasaLogoColor />
86+ < > { logoSvg } < />
8687 < span className = 'footer-text' >
8788 NASA EarthData 2024 • v0.17.0
8889 { /* {version} */ }
You can’t perform that action at this time.
0 commit comments