react-crud-mobile 1.3.328 → 1.3.329

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1233,15 +1233,18 @@ function UIToggle(props) {
1233
1233
  if (!style.color) {
1234
1234
  style.color = '#ffffff';
1235
1235
  }
1236
+ var backgroundColor = item.backgroundColor;
1237
+ var color = item.color;
1238
+ if (item.backgroundColor) style = _extends({}, style, {
1239
+ backgroundColor: backgroundColor
1240
+ });
1241
+ if (item.color) style = _extends({}, style, {
1242
+ color: color
1243
+ });
1244
+ } else {
1245
+ style.backgroundColor = '#fff';
1246
+ style.color = '#000';
1236
1247
  }
1237
- var backgroundColor = item.backgroundColor;
1238
- var color = item.color;
1239
- if (item.backgroundColor) style = _extends({}, style, {
1240
- backgroundColor: backgroundColor
1241
- });
1242
- if (item.color) style = _extends({}, style, {
1243
- color: color
1244
- });
1245
1248
  style.width = width;
1246
1249
  return style;
1247
1250
  };