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

[config] provide configuration context for react-avatar #106

Merged
merged 2 commits into from
Jul 1, 2018

Conversation

JorgenEvens
Copy link
Member

@JorgenEvens JorgenEvens commented Jun 17, 2018

This PR adds a ConfigProvider which can be used to set the cache
used and the colors array from which random colors are chosen.

ConfigProvider Usage:

https://github.com/Sitebase/react-avatar/blob/8a207c1644eefade6f009b4f0f25ff5526965633/src/demo.js#L219-L229

Cache API:
https://github.com/Sitebase/react-avatar/blob/8a207c1644eefade6f009b4f0f25ff5526965633/src/cache.js#L12-L55

Resolves #73
Related to #67

This PR adds a `ConfigProvider` which can be used to set the `cache`
used and the `colors` array from which random colors are chosen.
@JorgenEvens JorgenEvens force-pushed the feature/config-context branch from 1300023 to 0aa95bd Compare June 26, 2018 09:52
@JorgenEvens JorgenEvens self-assigned this Jun 27, 2018
@JorgenEvens JorgenEvens added this to the 3.1.0 milestone Jun 27, 2018
@JorgenEvens JorgenEvens merged commit 8ee5c82 into master Jul 1, 2018
@JorgenEvens JorgenEvens deleted the feature/config-context branch July 1, 2018 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant