@aclymatepackages/modules 1.0.31 → 1.0.33

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.
@@ -76,14 +76,7 @@ const EmissionsPieChart = _ref2 => {
76
76
  return emission.scope === scopeNumber;
77
77
  };
78
78
  const slicesArray = viewMode === "subcategories" ? subcategoriesArray : scopesArray;
79
- const unProjectedSlices = slicesArray.filter(_ref3 => {
80
- let {
81
- subcategory
82
- } = _ref3;
83
- const projectedStringArray = subcategory.split("_");
84
- return projectedStringArray.length === 1;
85
- });
86
- return unProjectedSlices.map(subcategoryObj => {
79
+ return slicesArray.map(subcategoryObj => {
87
80
  const {
88
81
  subcategory
89
82
  } = subcategoryObj;
@@ -108,12 +101,12 @@ const EmissionsPieChart = _ref2 => {
108
101
  dataKey: "emissionPercentage",
109
102
  cx: "50%",
110
103
  cy: "50%"
111
- }, pieSlicesWithPercentages.map(_ref4 => {
104
+ }, pieSlicesWithPercentages.map(_ref3 => {
112
105
  let {
113
106
  category,
114
107
  name,
115
108
  color
116
- } = _ref4;
109
+ } = _ref3;
117
110
  return /*#__PURE__*/_react.default.createElement(_recharts.Cell, {
118
111
  key: "emissions-pie-chart-cell-".concat(category),
119
112
  name: name,
@@ -150,9 +150,13 @@ const FootprintEquivalencies = _ref => {
150
150
  xs: 12
151
151
  }, /*#__PURE__*/_react.default.createElement(_material.Box, {
152
152
  display: "flex",
153
- justifyContent: "center"
153
+ justifyContent: "center",
154
+ width: "100%",
155
+ height: "100%"
154
156
  }, /*#__PURE__*/_react.default.createElement(_material.Box, {
155
- position: "relative"
157
+ position: "relative",
158
+ width: "100%",
159
+ height: "100%"
156
160
  }, /*#__PURE__*/_react.default.createElement("img", {
157
161
  alt: "".concat(type, "-image"),
158
162
  src: "https://dashboard.aclymate.com/images/footprint-equivalencies/".concat(type, ".svg"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aclymatepackages/modules",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "description": "Aclymate modules",
5
5
  "author": "William Loopesko",
6
6
  "main": "dist/index.js",
@@ -73,12 +73,7 @@ const EmissionsPieChart = ({
73
73
  const slicesArray =
74
74
  viewMode === "subcategories" ? subcategoriesArray : scopesArray;
75
75
 
76
- const unProjectedSlices = slicesArray.filter(({ subcategory }) => {
77
- const projectedStringArray = subcategory.split("_");
78
- return projectedStringArray.length === 1;
79
- });
80
-
81
- return unProjectedSlices.map((subcategoryObj) => {
76
+ return slicesArray.map((subcategoryObj) => {
82
77
  const { subcategory } = subcategoryObj;
83
78
  const emissionsWithThisCategory = emissions.filter(
84
79
  filterFunction(subcategory)
@@ -163,8 +163,8 @@ const FootprintEquivalencies = ({
163
163
  </Grid>
164
164
  </Grid>
165
165
  <Grid item lg={6} xs={12}>
166
- <Box display="flex" justifyContent="center">
167
- <Box position="relative">
166
+ <Box display="flex" justifyContent="center" width="100%" height="100%">
167
+ <Box position="relative" width="100%" height="100%">
168
168
  <img
169
169
  alt={`${type}-image`}
170
170
  src={`https://dashboard.aclymate.com/images/footprint-equivalencies/${type}.svg`}