bemto-components
Advanced tools
Comparing version 2.3.1 to 2.3.2
## Bemto-components changelog | ||
### v2.3.2 (2018-04-05) | ||
- Fixed incorrect variable definition. | ||
### v2.3.1 (2018-04-05) | ||
@@ -4,0 +8,0 @@ |
@@ -28,6 +28,6 @@ const React = require('react'); | ||
if (type === 'string' || type === 'number') { | ||
return `${key}_${value}`; | ||
return key + '_' + value; | ||
} | ||
if (type === 'function') { | ||
modValue = value(blockProps, component.state, component); | ||
const modValue = value(blockProps, component.state, component); | ||
if (modValue) { | ||
@@ -34,0 +34,0 @@ return renderModifier(key, modValue, blockProps, component); |
{ | ||
"name": "bemto-components", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "Smart components for using parts of BEM methodology with React", | ||
@@ -33,6 +33,6 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"bemto-button": "^0.4.0", | ||
"bemto-overflower": "^0.3.0", | ||
"bemto-input": "^0.1.0", | ||
"jest": "^22.4.2", | ||
"bemto-button": "^0.5.0", | ||
"bemto-overflower": "^0.4.0", | ||
"bemto-input": "^0.2.0", | ||
"jest": "21.2.1", | ||
"react-docgen-annotation-resolver": "^1.0.0", | ||
@@ -39,0 +39,0 @@ "react-dom": "^16.2.0", |
@@ -2057,3 +2057,3 @@ const React = require('react'); | ||
test.only('passing a bemto block to an element in props', () => { | ||
test('passing a bemto block to an element in props', () => { | ||
testSnapshot( | ||
@@ -2060,0 +2060,0 @@ bemto('.myBlock', { |
1177949