@aclymatepackages/modules 3.0.0 → 3.0.1
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.
|
@@ -198,7 +198,7 @@ const FootprintVideo = _ref6 => {
|
|
|
198
198
|
// eslint-disable-next-line
|
|
199
199
|
}, [videoStep, showVideos]);
|
|
200
200
|
const onAdvanceSlide = () => setVideoStep(currentStep => currentStep + 1);
|
|
201
|
-
const intermediateStepLabels = ["That's as much carbon as driving ".concat((0, _converters.convertFootprintToDriving)(monthlyFootprintTons), " miles."), "Or cutting down more than ".concat((0, _converters.convertFootprintToTrees)(monthlyFootprintTons), " 50-year-old tree").concat((0, _formatters.letterSBoolean)((0, _converters.convertFootprintToTrees)(monthlyFootprintTons)), "."), "It's enough to melt more than ".concat(formatDecimal((0, _converters.convertFootprintToIce)(monthlyFootprintTons)), " square feet of Arctic sea ice that will never come back."), "And your company emits this much carbon every single month."];
|
|
201
|
+
const intermediateStepLabels = ["That's as much carbon as driving ".concat((0, _converters.convertFootprintToDriving)(monthlyFootprintTons), " miles."), "Or cutting down more than ".concat((0, _converters.convertFootprintToTrees)(monthlyFootprintTons), " 50-year-old tree").concat((0, _formatters.letterSBoolean)((0, _converters.convertFootprintToTrees)(monthlyFootprintTons)), "."), "It's enough to melt more than ".concat((0, _formatters.formatDecimal)((0, _converters.convertFootprintToIce)(monthlyFootprintTons)), " square feet of Arctic sea ice that will never come back."), "And your company emits this much carbon every single month."];
|
|
202
202
|
const onboardingFootprintSteps = [/*#__PURE__*/_react.default.createElement(VideoFootprintDisplay, {
|
|
203
203
|
monthlyFootprintTons: monthlyFootprintTons,
|
|
204
204
|
onAdvanceSlide: onAdvanceSlide
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
convertFootprintToIce,
|
|
16
16
|
convertFootprintToTrees,
|
|
17
17
|
} from "@aclymatepackages/converters";
|
|
18
|
-
import { letterSBoolean } from "@aclymatepackages/formatters";
|
|
18
|
+
import { letterSBoolean, formatDecimal } from "@aclymatepackages/formatters";
|
|
19
19
|
|
|
20
20
|
const OnboardingFootprintLayout = ({ children }) => {
|
|
21
21
|
const [backgroundFade, setBackgroundFade] = useState(false);
|