diff --git a/landing/header.react.js b/landing/header.react.js index a99f8bd7b..252e9ef68 100644 --- a/landing/header.react.js +++ b/landing/header.react.js @@ -1,110 +1,118 @@ // @flow import { faTwitter, faGithub } from '@fortawesome/free-brands-svg-icons'; -import { faExternalLinkAlt, faBars } from '@fortawesome/free-solid-svg-icons'; +import { + faExternalLinkAlt, + faBars, + faTimes, +} from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import classNames from 'classnames'; import * as React from 'react'; import { NavLink } from 'react-router-dom'; import type { SetState } from 'lib/types/hook-types.js'; import css from './header.css'; import typography from './typography.css'; type Props = { +showMobileNav: boolean, +setShowMobileNav: SetState, }; function Header(props: Props): React.Node { const { showMobileNav, setShowMobileNav } = props; const headerContentContainerClassName = classNames({ [css.headerNavContentContainer]: true, [css.headerContainerMobileNavActive]: showMobileNav, }); const logoTextClassName = classNames([typography.heading2, css.logoText]); const badgeClassName = classNames([typography.paragraph2, css.betaBadge]); const navLinkClassName = classNames([typography.subheading2, css.tab]); const onClickLogo = React.useCallback(() => { setShowMobileNav(false); }, [setShowMobileNav]); const onClickMobileNavIcon = React.useCallback(() => { setShowMobileNav(!showMobileNav); }, [setShowMobileNav, showMobileNav]); return ( ); } export default Header;