Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Login Dialog Component - Replaced class by func. comp + added react-hook-form#341

Merged
juanpicado merged 17 commits intomasterfrom
refactor/116_convert_class_too_func_loginmodal
Dec 6, 2019
Merged

Login Dialog Component - Replaced class by func. comp + added react-hook-form#341
juanpicado merged 17 commits intomasterfrom
refactor/116_convert_class_too_func_loginmodal

Conversation

@priscilawebdev
Copy link
Copy Markdown
Contributor

@priscilawebdev priscilawebdev commented Dec 4, 2019

Type: Refactor

The following has been addressed in the PR: #116

Description:

in order to use react hooks, in this PR I updated the Login Dialog component by changing it from a class to a functional component.

I've also made it more pretty 💅

image

Others things done in this PR:

  • I have turned off this lint rule: react/jsx-max-depth, because it is not really helpful. Please do you agree with me?

  • I introduced this amazing library: React-hook-form, in order to have a better form's state management + less verbose + better performance. The library is also very lightweight with only 5.7kB (minified + GZIPPED) 👏

  • I installed mutationobserver-shim library to fix some tests issue. please see:
    image

@priscilawebdev priscilawebdev self-assigned this Dec 4, 2019
Copy link
Copy Markdown
Member

@juanpicado juanpicado left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What a beauty :-) looking forward ...

@priscilawebdev priscilawebdev removed the wip label Dec 5, 2019
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 5, 2019

Codecov Report

Merging #341 into master will decrease coverage by 0.24%.
The diff coverage is 65.78%.

@@            Coverage Diff             @@
##           master     #341      +/-   ##
==========================================
- Coverage   87.86%   87.62%   -0.25%     
==========================================
  Files         142      141       -1     
  Lines         972      937      -35     
  Branches      189      182       -7     
==========================================
- Hits          854      821      -33     
+ Misses        101       99       -2     
  Partials       17       17
Impacted Files Coverage Δ
src/App/App.tsx 96.29% <ø> (ø) ⬆️
src/components/Package/Package.tsx 100% <ø> (ø) ⬆️
src/App/AppContextProvider.tsx 100% <ø> (+8.33%) ⬆️
src/components/Engines/Engines.tsx 100% <ø> (ø) ⬆️
src/components/ActionBar/ActionBarAction.tsx 100% <ø> (ø) ⬆️
src/components/Header/HeaderMenu.tsx 100% <ø> (ø) ⬆️
src/components/Dist/Dist.tsx 88.88% <ø> (ø) ⬆️
src/components/Repository/Repository.tsx 52.94% <ø> (ø) ⬆️
src/App/AppContext.ts 100% <ø> (ø) ⬆️
src/App/AppRoute.tsx 85.71% <ø> (ø) ⬆️
... and 17 more

@priscilawebdev priscilawebdev force-pushed the refactor/116_convert_class_too_func_loginmodal branch from e6e6f2f to d64bd9c Compare December 5, 2019 22:29
@divyeshairmeet
Copy link
Copy Markdown

is this closed? Can I work on this?

"react/jsx-indent-props": ["error", 2],
"react/jsx-key": ["error"],
"react/jsx-max-depth": ["error", { "max": 2}],
"react/jsx-max-depth":["error", { "max": 5}],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆

@verdacciobot
Copy link
Copy Markdown

Thanks for your PR, the @verdaccio/ui package will be accessible from here for testing purposes:

npm install @verdaccio/[email protected] --registry https://registry.verdaccio.org

Copy link
Copy Markdown
Member

@juanpicado juanpicado left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍 👍 👍 👍 👍 👍 👍 👍 👍
Screen Shot 2019-12-06 at 6 02 44 PM

@juanpicado
Copy link
Copy Markdown
Member

juanpicado commented Dec 6, 2019

Great job here ! 👏

@juanpicado juanpicado merged commit 42d3bb8 into master Dec 6, 2019
@delete-merged-branch delete-merged-branch bot deleted the refactor/116_convert_class_too_func_loginmodal branch December 6, 2019 17:09
@priscilawebdev
Copy link
Copy Markdown
Contributor Author

@juanpicado thanks 🙃🙂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants