Skip to content

Commit

Permalink
Merge pull request #43 from NASA-IMPACT/google-form-related
Browse files Browse the repository at this point in the history
Add google form link only to footer
  • Loading branch information
hanbyul-here authored Nov 21, 2023
2 parents f3c331c + cb432c5 commit 288ef81
Showing 1 changed file with 6 additions and 33 deletions.
39 changes: 6 additions & 33 deletions overrides/components/page-footer/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ const FooterMenu = styled.ul`
align-items: center;
gap: ${glsp(3)};
`}
li:last-child {
${media.mediumUp`
margin-left: auto;
`}
}
`;

const FooterMenuLink = styled(NavLink)`
Expand Down Expand Up @@ -278,33 +272,12 @@ export default function PageFooter(props) {
<FooterMenuLink to={ABOUT_PATH}>About</FooterMenuLink>
</li>
<li>
{process.env.GOOGLE_FORM ? (
isMediumUp ? (
<Button
variation="primary-outline"
size="large"
onClick={(e) => {
e.preventDefault();
show();
}}
>
Contact Us
</Button>
) : (
<FooterMenuLink
as="a"
href="#"
onClick={(e) => {
e.preventDefault();
show();
}}
>
Contact Us
</FooterMenuLink>
)
) : (
false
)}
<FooterMenuLink
as="a"
href="https://docs.google.com/forms/d/1mDgFqUsNv90Js7pERNDbmyN5RksztIy5ZZojWD0n5Pg"
>
Contact Us
</FooterMenuLink>
</li>
</FooterMenu>
</nav>
Expand Down

0 comments on commit 288ef81

Please sign in to comment.