diff --git a/src/components/Header/Header.test.tsx b/src/components/Header/Header.test.tsx index 64dd79875..29a9d77fa 100644 --- a/src/components/Header/Header.test.tsx +++ b/src/components/Header/Header.test.tsx @@ -6,7 +6,7 @@ import Header from './Header'; describe('
', () => { test('renders header', () => { - const { container } = render(
); + const { container } = render(
); expect(container).toMatchSnapshot(); }); diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index a51028ce1..794607853 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -3,6 +3,7 @@ import classNames from 'classnames'; import ButtonLink from '../ButtonLink/ButtonLink'; import Logo from '../Logo/Logo'; +import Menu from '../../icons/Menu'; import styles from './Header.module.scss'; @@ -10,14 +11,18 @@ type TypeHeader = 'static' | 'fixed'; type Props = { headerType?: TypeHeader; + openSideBar: (sideBarOpen: boolean) => void; }; -const Header: React.FC = ({ headerType = 'static' }) => { +const Header: React.FC = ({ headerType = 'static', openSideBar }) => { return (
-
- Placeholder +
openSideBar(!sideBarOpen)} + > +
+
); diff --git a/src/components/Header/__snapshots__/Header.test.tsx.snap b/src/components/Header/__snapshots__/Header.test.tsx.snap index d9f07d855..545b937ce 100644 --- a/src/components/Header/__snapshots__/Header.test.tsx.snap +++ b/src/components/Header/__snapshots__/Header.test.tsx.snap @@ -1,5 +1,65 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`
renders header 1`] = ` +
+
+
+
+ + + + + + +
+
+ logo +
+ +
+
+
+
+`; + exports[`
renders headers 1`] = `
renders layout 1`] = ` +
+
+
+
+
+ + + + + + +
+
+ logo +
+ +
+
+
+
+ +
+
+
+`;