@asaleh37/ui-base 1.1.2 → 1.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asaleh37/ui-base",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -9,7 +9,9 @@ import Layout from "../layout/Layout";
9
9
  import { AppInfo, AppInfoActions } from "../redux/features/common/AppInfoSlice";
10
10
 
11
11
  const App: React.FC<AppInfo> = (props: AppInfo) => {
12
- const dispatch = useDispatch();
12
+ const dispatch = useDispatch();
13
+ console.log("App Info", props);
14
+ dispatch(AppInfoActions.setAppInfo(props));
13
15
  const AppLayoutState = useSelector((state: RootState) => state.AppLayout);
14
16
  let themeOptions = { ...LightThemeOptions };
15
17
  if (AppLayoutState.themeMode === "dark") {
@@ -22,9 +24,6 @@ const App: React.FC<AppInfo> = (props: AppInfo) => {
22
24
  useEffect(() => {
23
25
  document.title = props.documentTitle;
24
26
  }, []);
25
- useEffect(() => {
26
- dispatch(AppInfoActions.setAppInfo(props));
27
- }, [props]);
28
27
  return (
29
28
  <ThemeProvider theme={theme}>
30
29
  <Layout />