react-css-themr
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -72,4 +72,6 @@ 'use strict'; | ||
value: function render() { | ||
var composeTheme = this.props.composeTheme; | ||
return _react2.default.createElement(ThemedComponent, _extends({}, this.props, { | ||
theme: this.props.composeTheme ? this.getTheme() : this.getThemeNotComposed() | ||
theme: composeTheme ? this.getTheme() : this.getThemeNotComposed() | ||
})); | ||
@@ -76,0 +78,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/javivelasco/react-css-themr#readme", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "./lib", | ||
@@ -24,3 +24,3 @@ "author": { | ||
"react", | ||
"react-themr", | ||
"react-css-themr", | ||
"theming" | ||
@@ -27,0 +27,0 @@ ], |
@@ -44,3 +44,3 @@ [![npm version](https://img.shields.io/npm/v/react-css-themr.svg?style=flat-square)](https://www.npmjs.com/package/react-css-themr) | ||
import React, { Component } from 'react'; | ||
import { themr } from 'react-themr'; | ||
import { themr } from 'react-css-themr'; | ||
@@ -84,3 +84,3 @@ @themr('MyThemedButton') | ||
import React, { Component } from 'react'; | ||
import { themr } from 'react-themr'; | ||
import { themr } from 'react-css-themr'; | ||
import successTheme from './SuccessButton.css'; | ||
@@ -87,0 +87,0 @@ |
@@ -49,5 +49,6 @@ import React, { Component, PropTypes } from 'react' | ||
render() { | ||
const { composeTheme } = this.props | ||
return React.createElement(ThemedComponent, { | ||
...this.props, | ||
theme: this.props.composeTheme | ||
theme: composeTheme | ||
? this.getTheme() | ||
@@ -54,0 +55,0 @@ : this.getThemeNotComposed() |
23171
249