@aclymatepackages/modules 1.0.7 → 1.0.8
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.
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _EmissionsChart = require("./EmissionsChart");
|
|
8
|
+
var _EmissionsChart = _interopRequireDefault(require("./EmissionsChart"));
|
|
9
9
|
var _emissionsCalcs = require("@aclymatepackages/emissions-calcs");
|
|
10
10
|
var _EmissionsPieChart = _interopRequireDefault(require("./EmissionsPieChart"));
|
|
11
11
|
var _ReportContentTitle = _interopRequireDefault(require("./ReportContentTitle"));
|
|
@@ -16,10 +16,10 @@ const SummaryBlock = _ref => {
|
|
|
16
16
|
let {
|
|
17
17
|
emissions,
|
|
18
18
|
interval,
|
|
19
|
-
|
|
19
|
+
EmissionsChartComp
|
|
20
20
|
} = _ref;
|
|
21
21
|
return /*#__PURE__*/_react.default.createElement(_ReportGraphContentLayout.default, {
|
|
22
|
-
EmissionsChart:
|
|
22
|
+
EmissionsChart: EmissionsChartComp || _EmissionsChart.default,
|
|
23
23
|
contentTitle: "Summary",
|
|
24
24
|
interval: interval,
|
|
25
25
|
emissions: emissions,
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Typography } from "@mui/material";
|
|
3
3
|
|
|
4
|
-
const ReportContentTitle = ({ title }) =>
|
|
5
|
-
<Typography variant="subtitle1">{title}</Typography
|
|
6
|
-
|
|
4
|
+
const ReportContentTitle = ({ title }) => {
|
|
5
|
+
return <Typography variant="subtitle1">{title}</Typography>;
|
|
6
|
+
};
|
|
7
7
|
|
|
8
8
|
export default ReportContentTitle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import EmissionsChart from "./EmissionsChart";
|
|
4
4
|
|
|
5
5
|
import { filterEmissionsByScope } from "@aclymatepackages/emissions-calcs";
|
|
6
6
|
import EmissionsPieChart from "./EmissionsPieChart";
|
|
@@ -8,10 +8,10 @@ import ReportContentTitle from "./ReportContentTitle";
|
|
|
8
8
|
import EmissionsSummarySentence from "./EmissionsSummarySentence";
|
|
9
9
|
import ReportGraphContentLayout from "./ReportGraphContentLayout";
|
|
10
10
|
|
|
11
|
-
const SummaryBlock = ({ emissions, interval,
|
|
11
|
+
const SummaryBlock = ({ emissions, interval, EmissionsChartComp }) => {
|
|
12
12
|
return (
|
|
13
13
|
<ReportGraphContentLayout
|
|
14
|
-
EmissionsChart={
|
|
14
|
+
EmissionsChart={EmissionsChartComp || EmissionsChart}
|
|
15
15
|
contentTitle="Summary"
|
|
16
16
|
interval={interval}
|
|
17
17
|
emissions={emissions}
|