-
Notifications
You must be signed in to change notification settings - Fork 80
refactor: convert Dist component to hooks #156
Conversation
Codecov Report
@@ Coverage Diff @@
## master #156 +/- ##
==========================================
- Coverage 83.33% 83.15% -0.18%
==========================================
Files 98 98
Lines 948 944 -4
Branches 166 165 -1
==========================================
- Hits 790 785 -5
- Misses 141 142 +1
Partials 17 17
Continue to review full report at Codecov.
|
}; | ||
|
||
const chipsList = Object.keys(distDict).map((dist, key) => { | ||
if (!distDict[dist]) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is a bug or intentional, but this will hide the chips for file count or size if they happen to be 0. I've done a strict refactor and included the same behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 perfect ! thanks @bighuggies
Type: refactor
The following has been addressed in the PR: #116
Description:
Very similar to #150
Dist
component to a function componentDetailContext
consumer touseContext
hook