plain-design 1.0.0-beta.87 → 1.0.0-beta.88

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plain-design",
3
- "version": "1.0.0-beta.87",
3
+ "version": "1.0.0-beta.88",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -54,15 +54,7 @@ export const ThemeEditor = designComponent({
54
54
  ClientZoom.set(state.zoom);
55
55
  },
56
56
  onDarkChange: () => {
57
- const val = !state.dark ? false : state.dark === 'dark';
58
- PageThemeUtils.toggle(val);
59
- if (val && state.primaryKey === 'dark') {
60
- state.primaryKey = 'light';
61
- handler.onPrimaryChange();
62
- } else if (!val && state.primaryKey === 'light') {
63
- state.primaryKey = 'dark';
64
- handler.onPrimaryChange();
65
- }
57
+ PageThemeUtils.toggle(state.dark == 'dark');
66
58
  },
67
59
  onPrimaryChange: () => {PageThemeUtils.primary(state.primaryKey);},
68
60
  onInputModeChange: () => {PageThemeUtils.inputMode(state.inputMode);},