orc-shared 5.9.0-dev.11 → 5.9.0-dev.13

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.
@@ -44,18 +44,19 @@ var Registry = function Registry(_ref) {
44
44
  var classes = useStyles();
45
45
  var created = formatDate(dateCreated);
46
46
  var lastModified = formatDate(lastModifiedDate);
47
+ 0;
47
48
  var registry = /*#__PURE__*/_react.default.createElement(_Box.default, {
48
49
  className: classes.registry,
49
50
  display: "flex",
50
51
  flexDirection: "column"
51
52
  }, dateCreated !== undefined && /*#__PURE__*/_react.default.createElement(_InformationItem.default, {
52
- label: _sharedMessages.default.dateCreated,
53
+ label: _sharedMessages.default.created,
53
54
  children: created
54
55
  }), createdBy !== undefined && /*#__PURE__*/_react.default.createElement(_InformationItem.default, {
55
56
  label: _sharedMessages.default.createdBy,
56
57
  children: createdBy
57
58
  }), lastModifiedDate !== undefined && /*#__PURE__*/_react.default.createElement(_InformationItem.default, {
58
- label: _sharedMessages.default.lastModifiedDate,
59
+ label: _sharedMessages.default.lastModified,
59
60
  children: lastModified
60
61
  }), lastModifiedBy !== undefined && /*#__PURE__*/_react.default.createElement(_InformationItem.default, {
61
62
  label: _sharedMessages.default.lastModifiedBy,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orc-shared",
3
- "version": "5.9.0-dev.11",
3
+ "version": "5.9.0-dev.13",
4
4
  "description": "Shared code for Orckestra applications",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import InformationItem from "./MaterialUI/DataDisplay/PredefinedElements/InformationItem";
3
- import sharedMessages from "~/sharedMessages";
3
+ import sharedMessages from "../sharedMessages";
4
4
  import { useIntl } from "react-intl";
5
5
  import Box from "@material-ui/core/Box";
6
6
  import { makeStyles } from "@material-ui/core/styles";
@@ -19,13 +19,13 @@ const Registry = ({ dateCreated, createdBy, lastModifiedDate, lastModifiedBy, ad
19
19
 
20
20
  const created = formatDate(dateCreated);
21
21
  const lastModified = formatDate(lastModifiedDate);
22
-
22
+ 0;
23
23
  const registry = (
24
24
  <Box className={classes.registry} display="flex" flexDirection="column">
25
- {dateCreated !== undefined && <InformationItem label={sharedMessages.dateCreated} children={created} />}
25
+ {dateCreated !== undefined && <InformationItem label={sharedMessages.created} children={created} />}
26
26
  {createdBy !== undefined && <InformationItem label={sharedMessages.createdBy} children={createdBy} />}
27
27
  {lastModifiedDate !== undefined && (
28
- <InformationItem label={sharedMessages.lastModifiedDate} children={lastModified} />
28
+ <InformationItem label={sharedMessages.lastModified} children={lastModified} />
29
29
  )}
30
30
  {lastModifiedBy !== undefined && (
31
31
  <InformationItem label={sharedMessages.lastModifiedBy} children={lastModifiedBy} />
@@ -29,9 +29,9 @@ describe("Registry", () => {
29
29
  const expected = (
30
30
  <TestWrapper intlProvider={{ messages }} stylesProvider muiThemeProvider={{ theme }}>
31
31
  <Box display="flex" flexDirection="column">
32
- <InformationItem label={sharedMessages.dateCreated} children="10/6/2020" />
32
+ <InformationItem label={sharedMessages.created} children="10/6/2020" />
33
33
  <InformationItem label={sharedMessages.createdBy} children={createdBy} />
34
- <InformationItem label={sharedMessages.lastModifiedDate} children="10/6/2020" />
34
+ <InformationItem label={sharedMessages.lastModified} children="10/6/2020" />
35
35
  <InformationItem label={sharedMessages.lastModifiedBy} children={lastModifiedBy} />
36
36
  </Box>
37
37
  </TestWrapper>
@@ -70,9 +70,9 @@ describe("Registry", () => {
70
70
  const expected = (
71
71
  <TestWrapper intlProvider={{ messages }} stylesProvider muiThemeProvider={{ theme }}>
72
72
  <Box display="flex" flexDirection="column">
73
- <InformationItem label={sharedMessages.dateCreated} children="10/6/2020" />
73
+ <InformationItem label={sharedMessages.created} children="10/6/2020" />
74
74
  <InformationItem label={sharedMessages.createdBy} children={createdBy} />
75
- <InformationItem label={sharedMessages.lastModifiedDate} children="10/6/2020" />
75
+ <InformationItem label={sharedMessages.lastModified} children="10/6/2020" />
76
76
  <InformationItem label={sharedMessages.lastModifiedBy} children={lastModifiedBy} />
77
77
  <InformationItem label={sharedMessages.about} children={"some date"} />
78
78
  <InformationItem label={sharedMessages.help} children={"Hugh Mann"} />