Commit b4197484 authored by Mickaël Bourgier's avatar Mickaël Bourgier
Browse files

🐛 Replace `inject` option by `injectTheme`

See https://github.com/cssinjs/jss/pull/934
parent 8ef48b45
Pipeline #1496 failed with stage
in 2 minutes and 51 seconds
import injectSheet from 'react-jss';
const withStyles = (styles, { withTheme = false } = {}) => {
const inject = ['classes'];
if (withTheme) {
inject.push('theme');
}
return injectSheet(styles, { inject });
};
const withStyles = (styles, { withTheme = false } = {}) =>
injectSheet(styles, { injectTheme: withTheme });
export default withStyles;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment