Skip to content

Commit

Permalink
correct ts and lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
snmln committed Dec 10, 2024
1 parent c47e331 commit e629882
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/scripts/components/common/layout-root/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function LayoutRoot(props: { children?: ReactNode }) {
primarySection={{
footerPrimaryContactItems,
footerPrimaryNavItems
}}
}} // @ts-expect-error: NEED TO DELETE
hideFooter={hideFooter}
/>
) : (
Expand Down
7 changes: 4 additions & 3 deletions app/scripts/components/common/page-footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { ComponentType } from 'react';
import React from 'react';
import { Icon } from '@trussworks/react-uswds';
import NasaLogoColor from '../../nasa-logo-color.js';
import {
Expand All @@ -19,7 +19,7 @@ export default function PageFooter({
primarySection,
hidefooter
}: PageFooterProps) {
console.log(settings, primarySection, hidefooter);
// console.log(settings, primarySection, hidefooter);
const returnToTopButton = () => {
return (
<div
Expand All @@ -34,13 +34,14 @@ export default function PageFooter({
};

const { returnToTop, secondarySection } = settings;
/* eslint-disable */
const { footerPrimaryContactItems, footerPrimaryNavItems } = primarySection;
return (
<>
<USWDSFooter
size='slim'
returnToTop={returnToTop && returnToTopButton()}
// className={hidefooter && 'display-none'}
className={hidefooter && 'display-none'}
primary={
<div
id='footer_primary_container'
Expand Down

0 comments on commit e629882

Please sign in to comment.