Changeset View
Changeset View
Standalone View
Standalone View
landing/header.react.js
Show All 10 Lines | |||||
import * as React from 'react'; | import * as React from 'react'; | ||||
import { NavLink } from 'react-router-dom'; | import { NavLink } from 'react-router-dom'; | ||||
import type { SetState } from 'lib/types/hook-types.js'; | import type { SetState } from 'lib/types/hook-types.js'; | ||||
import css from './header.css'; | import css from './header.css'; | ||||
import typography from './typography.css'; | import typography from './typography.css'; | ||||
// This value comes from the breakpoint value in header.css. Please make sure | |||||
// that this value is in sync with header.css if ever changed | |||||
export const HEADER_BREAKPOINT = 848; // px | |||||
type Props = { | type Props = { | ||||
+showMobileNav: boolean, | +showMobileNav: boolean, | ||||
+setShowMobileNav: SetState<boolean>, | +setShowMobileNav: SetState<boolean>, | ||||
}; | }; | ||||
function Header(props: Props): React.Node { | function Header(props: Props): React.Node { | ||||
const { showMobileNav, setShowMobileNav } = props; | const { showMobileNav, setShowMobileNav } = props; | ||||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |