@sinco/react 1.1.1-rc.8 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +9 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -20116,9 +20116,9 @@ const DynamicColor = async src => {
20116
20116
  };
20117
20117
 
20118
20118
  const useDynamicColor = url => {
20119
- useState(AdproSincoTheme.palette.primary);
20120
- useState(AdproSincoTheme.palette.secondary);
20121
- useState(AdproSincoTheme.palette.background);
20119
+ const [primaryAdpro, setPrimaryAdpro] = useState(AdproSincoTheme.palette.primary);
20120
+ const [secondaryAdpro, setSecondaryAdpro] = useState(AdproSincoTheme.palette.secondary);
20121
+ const [backgroundAdpro, setBackgroundAdpro] = useState(AdproSincoTheme.palette.background);
20122
20122
  const [primary, setPrimary] = useState(SincoTheme.palette.primary);
20123
20123
  const [secondary, setSecondary] = useState(SincoTheme.palette.secondary);
20124
20124
  const [background, setBackground] = useState(SincoTheme.palette.background);
@@ -20132,15 +20132,18 @@ const useDynamicColor = url => {
20132
20132
  setPrimary(primaryColor);
20133
20133
  setSecondary(secondaryColor);
20134
20134
  setBackground(backgroundColor);
20135
+ setPrimaryAdpro(primaryColor);
20136
+ setSecondaryAdpro(secondaryColor);
20137
+ setBackgroundAdpro(backgroundColor);
20135
20138
  setLoading(true);
20136
20139
  });
20137
20140
  }, [url]);
20138
20141
  SincoTheme.palette.primary = primary;
20139
20142
  SincoTheme.palette.secondary = secondary;
20140
20143
  SincoTheme.palette.background = background;
20141
- AdproSincoTheme.palette.primary = primary;
20142
- AdproSincoTheme.palette.secondary = secondary;
20143
- AdproSincoTheme.palette.background = background;
20144
+ AdproSincoTheme.palette.primary = primaryAdpro;
20145
+ AdproSincoTheme.palette.secondary = secondaryAdpro;
20146
+ AdproSincoTheme.palette.background = backgroundAdpro;
20144
20147
  return {
20145
20148
  loading
20146
20149
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.1.1-rc.8",
3
+ "version": "1.1.1",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",