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

Exposing a global cssModule setter #729

Merged
merged 1 commit into from
Dec 11, 2017
Merged

Conversation

jlaramie
Copy link
Contributor

@jlaramie jlaramie commented Dec 5, 2017

No description provided.

@jlaramie jlaramie force-pushed the master branch 2 times, most recently from 9b08622 to 2733de0 Compare December 5, 2017 18:29
src/utils.js Outdated
@@ -44,7 +44,13 @@ export function conditionallyUpdateScrollbar() {
}
}

export function mapToCssModules(className, cssModule) {
let globalCssModule = {};
Copy link
Member

Choose a reason for hiding this comment

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

Don't default this to an empty object, leave it undefined so that when nothing is provided mapToCssModules will do nothing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made the change

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.

None yet

2 participants