@thefreshop/tb 1.0.22 → 1.0.23
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.
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -228,8 +228,10 @@ const TopMenu = ({ topMenuSetting: { title, icon, key }, menuStyle = {}, defalul
|
|
|
228
228
|
const [hover, setHover] = React.useState(false);
|
|
229
229
|
const { topkey, setTopkey } = useTbState();
|
|
230
230
|
React.useEffect(() => {
|
|
231
|
-
if (defalultTopKey)
|
|
231
|
+
if (defalultTopKey) {
|
|
232
|
+
console.log(defalultTopKey);
|
|
232
233
|
setTopkey(defalultTopKey);
|
|
234
|
+
}
|
|
233
235
|
}, [defalultTopKey]);
|
|
234
236
|
return (React.createElement("div", { className: `${styles$8.top_menu_item} ${hover ? styles$8.menu_hover : styles$8.menu_nomal}`, style: menuStyle.menuWidth ? { width: menuStyle.menuWidth } : {}, onMouseEnter: () => {
|
|
235
237
|
setHover(true);
|