GroceriStar / GroceriStar/pdf-export-component
duplicated components
Open
enhancement
good first issue
help wanted
high
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
i think it's obvious task
when i see this import, it's easy to find out what should be improved.
https://github.com/GroceriStar/pdf-export-component/blob/master/src/index.js#L15-L29
So right now we have 4 components that triplicated, because we have 3 different cases for displaying data.
But i also want to have 4th case to add, but this will be a problem - because a lot of code is similar.
I think we should create some sort of a component, where we'll pass a `type` property and it'll define which case we'll cover.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.