@openmrs/esm-stock-management-app 1.0.1-pre.455 → 1.0.1-pre.464

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,34 @@
1
1
  import React from "react";
2
+ import { useTranslation } from "react-i18next";
3
+ import styles from "./stock-settings.scss";
4
+ import { navigate } from "@openmrs/esm-framework";
5
+ import { Button } from "@carbon/react";
6
+ import { UserSettings } from "@carbon/react/icons";
2
7
 
3
8
  function StockSettings() {
9
+ const { t } = useTranslation();
10
+
4
11
  return (
5
- <div style={{ margin: "5px" }}>
6
- <span>Coming Soon...</span>
12
+ <div className={styles.StockSettings}>
13
+ <div className={styles.title}>
14
+ {t(
15
+ "comingSoonUnderDev",
16
+ "Exciting updates are on the way! In the meantime, use the link below to access Admin UI settings."
17
+ )}
18
+ </div>
19
+
20
+ <Button
21
+ onClick={() =>
22
+ navigate({
23
+ to: `\${openmrsBase}/admin/maintenance/settings.list?show=Stockmanagement`,
24
+ })
25
+ }
26
+ size="md"
27
+ renderIcon={() => <UserSettings className="cds--btn__icon" size={24} />}
28
+ kind="ghost"
29
+ >
30
+ {t("adminSettings", "Admin settings")}
31
+ </Button>
7
32
  </div>
8
33
  );
9
34
  }
@@ -0,0 +1,23 @@
1
+ @use '@carbon/colors';
2
+ @use '@carbon/layout';
3
+ @use "../root.scss" as *;
4
+
5
+ .StockSettings {
6
+ display: flex;
7
+ justify-content: center;
8
+ flex-direction: column;
9
+ justify-content: flex-end;
10
+ min-height: calc(layout.$layout-07 * 1.25);
11
+ border: 1px solid colors.$gray-20;
12
+ margin: layout.$spacing-03;
13
+ align-items: center;
14
+ background-color: colors.$white-0;
15
+
16
+ &>button {
17
+ margin-bottom: layout.$layout-03;
18
+ }
19
+ }
20
+
21
+ .title {
22
+ @extend .productiveHeading01;
23
+ }
@@ -0,0 +1,5 @@
1
+ export interface DashboardConfig {
2
+ name: string;
3
+ slot: string;
4
+ title: string;
5
+ }