Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose icons as named exports for consumers of package #3

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

jeronimomora
Copy link

I quite like the Icons in this package. I wanted to create my own custom AlertTemplate, but still make use of the icons without doing a copy paste of code from this repository.

This pull request does a small refactor which bunches up all the icons as named exports from an index file in the 'src/icons' directory and moves the AlertTemplate to its own file. The 'src/index' file is then changed to be the entry point for the build, and is where AlertTemplate is exported as default, and the icons are exported as named exports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants