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

refactor:116[PackageList] component is converted to functional#219

Merged
juanpicado merged 2 commits intoverdaccio:masterfrom
alfonsoar:refactor/116_packageList_is_converted_to_functional_component
Oct 26, 2019
Merged

refactor:116[PackageList] component is converted to functional#219
juanpicado merged 2 commits intoverdaccio:masterfrom
alfonsoar:refactor/116_packageList_is_converted_to_functional_component

Conversation

@alfonsoar
Copy link
Copy Markdown
Member

@alfonsoar alfonsoar commented Oct 26, 2019

Type: Refactor

The following has been addressed in the PR:

  • There is a related issue? Yes #116
  • Unit or Functional tests are included in the PR: no

Description:

Refactor PackageList component to functional

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 26, 2019

Codecov Report

Merging #219 into master will decrease coverage by 0.04%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #219      +/-   ##
==========================================
- Coverage   87.55%   87.51%   -0.05%     
==========================================
  Files         118      118              
  Lines         876      873       -3     
  Branches      160      160              
==========================================
- Hits          767      764       -3     
  Misses         94       94              
  Partials       15       15
Impacted Files Coverage Δ
src/pages/home/Home.tsx 100% <ø> (ø) ⬆️
src/components/PackageList/PackageList.tsx 100% <100%> (ø) ⬆️

@@ -1,4 +1,4 @@
import React, { Fragment, ReactElement } from 'react';
import * as React from 'react';
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.

We usually uses import React, { Fragment, ReactElement } from 'react'; format, this is for consistence and using * is not a good practice in general.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@juanpicado understood I will follow the former pattern for future PRs. Out of curiosity what makes * not good practice? is it just cause we are importing everything?

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.

Thanks @agar23 !! 🚀

@juanpicado juanpicado merged commit ae0222c into verdaccio:master Oct 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants