@asaleh37/ui-base 1.2.21 → 1.2.22

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.2.21",
3
+ "version": "1.2.22",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -5,8 +5,11 @@ import ReportViewer from "../templates/report/ReportViewer";
5
5
  import WorkflowDocumentPanel from "../templates/workflow/WorkflowDocumentPanel";
6
6
  import DashboardViewer from "../templates/visuals/DashboardViewer";
7
7
  import AttachmentPanel from "../templates/attachment/AttachmentPanel";
8
+ import { useSelector } from "react-redux";
8
9
 
9
10
  const Home: React.FC = () => {
11
+ const AppInfo = useSelector((state: any) => state.AppInfo.value);
12
+ console.log("AppInfo", AppInfo);
10
13
  return (
11
14
  <Box
12
15
  sx={{
@@ -19,8 +22,13 @@ const Home: React.FC = () => {
19
22
  fontWeight: "bold",
20
23
  }}
21
24
  >
22
- <img src="logo.png" style={{ margin: 5 }} />
23
- <div>Welcome to Ezzsteel Flat Product Management System</div>
25
+ <img
26
+ src={AppInfo.appLogo}
27
+ style={{ margin: 5, height: 200, width: 200 }}
28
+ />
29
+ <div>
30
+ Welcome to {AppInfo.appName} v.{AppInfo.appVersion}
31
+ </div>
24
32
  <div style={{ fontSize: 16 }}>
25
33
  Use side menu [
26
34
  <FontAwesomeIcon