@asaleh37/ui-base 1.2.20 → 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.20",
3
+ "version": "1.2.22",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -5,33 +5,39 @@ 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
- // <DashboardViewer dashboardCode="XX_TEMPLATE_DASHBOARD" />
12
- <AttachmentPanel attachmentCode="DOC" refKey="1"/>
13
- // <Box
14
- // sx={{
15
- // display: "flex",
16
- // flexDirection: "column",
17
- // alignItems: "center",
18
- // justifyContent: "center",
19
- // flex: 1,
20
- // fontSize: 24,
21
- // fontWeight: "bold",
22
- // }}
23
- // >
24
- // <img src="logo.png" style={{ margin: 5 }} />
25
- // <div>Welcome to Ezzsteel Flat Product Management System</div>
26
- // <div style={{ fontSize: 16 }}>
27
- // Use side menu [
28
- // <FontAwesomeIcon
29
- // icon="bars"
30
- // style={{ marginLeft: 10, marginRight: 10 }}
31
- // />
32
- // ] to navigate to your authorized system modules
33
- // </div>
34
- // </Box>
14
+ <Box
15
+ sx={{
16
+ display: "flex",
17
+ flexDirection: "column",
18
+ alignItems: "center",
19
+ justifyContent: "center",
20
+ flex: 1,
21
+ fontSize: 24,
22
+ fontWeight: "bold",
23
+ }}
24
+ >
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>
32
+ <div style={{ fontSize: 16 }}>
33
+ Use side menu [
34
+ <FontAwesomeIcon
35
+ icon="bars"
36
+ style={{ marginLeft: 10, marginRight: 10 }}
37
+ />
38
+ ] to navigate to your authorized system modules
39
+ </div>
40
+ </Box>
35
41
  );
36
42
  };
37
43
 
Binary file