From 986ac0538bbc2adab12d08654562c2a0b9cc0ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=AA=20S=C4=A9=20B=C3=ADch?= Date: Fri, 3 Jan 2020 10:33:28 +0700 Subject: [PATCH] Implement navbar (#34) * navbar * test navbar * test navbar * story for disabled, change flow type name, style for disabled item * add test for click event --- .eslintrc.yml | 3 + .storybook/preview-head.html | 4 +- flow-typed/lodash.js | 1 + jest.setup.js | 2 + package.json | 5 + .../navbar/__tests__/navbar.spec.jsx | 157 ++++++++++++++++++ src/components/navbar/index.js | 1 + src/components/navbar/navbar.jsx | 96 +++++++++++ src/components/navbar/navbar.module.scss | 49 ++++++ src/index.js | 2 + src/initializers/font-awesome.js | 4 + stories/0-Markdown.stories.jsx | 3 +- stories/1-Navbar.stories.jsx | 76 +++++++++ yarn.lock | 42 ++++- 14 files changed, 441 insertions(+), 4 deletions(-) create mode 100644 src/components/navbar/__tests__/navbar.spec.jsx create mode 100644 src/components/navbar/index.js create mode 100644 src/components/navbar/navbar.jsx create mode 100644 src/components/navbar/navbar.module.scss create mode 100644 src/initializers/font-awesome.js create mode 100644 stories/1-Navbar.stories.jsx diff --git a/.eslintrc.yml b/.eslintrc.yml index bf95c37..17fe7bd 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -26,6 +26,9 @@ rules: - allow: - __REDUX_DEVTOOLS_EXTENSION__ - __REDUX_DEVTOOLS_EXTENSION_COMPOSE__ + no-unused-expressions: + - error + - allowShortCircuit: true no-unused-vars: - error - args: none diff --git a/.storybook/preview-head.html b/.storybook/preview-head.html index 8e0ed19..26e741e 100644 --- a/.storybook/preview-head.html +++ b/.storybook/preview-head.html @@ -10,8 +10,8 @@