sag_components 1.0.214 → 1.0.216
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.
|
@@ -19,7 +19,7 @@ var _TitleDescriptionStyle = require("./TitleDescription.style.js");
|
|
|
19
19
|
var _excluded = ["showRetailerIcon", "data", "viewCreativeOnClick", "width", "height", "textColor", "disabled"];
|
|
20
20
|
/*TitleDescription*/
|
|
21
21
|
var TitleDescription = function TitleDescription(_ref) {
|
|
22
|
-
var _data$objectivesDescr;
|
|
22
|
+
var _data$objectivesDescr, _data$eventDatesValue, _data$eventDatesValue2;
|
|
23
23
|
var _ref$showRetailerIcon = _ref.showRetailerIcon,
|
|
24
24
|
showRetailerIcon = _ref$showRetailerIcon === void 0 ? true : _ref$showRetailerIcon,
|
|
25
25
|
data = _ref.data,
|
|
@@ -134,11 +134,11 @@ var TitleDescription = function TitleDescription(_ref) {
|
|
|
134
134
|
id: "SubLineContainer"
|
|
135
135
|
}), /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.SubLineContainer, {
|
|
136
136
|
id: "SubLineContainer"
|
|
137
|
-
}, /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.PeriodLabel, {
|
|
137
|
+
}, (data === null || data === void 0 ? void 0 : (_data$eventDatesValue = data.eventDatesValue) === null || _data$eventDatesValue === void 0 ? void 0 : _data$eventDatesValue.length) > 0 ? /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.PeriodLabel, {
|
|
138
138
|
id: "PeriodLabel"
|
|
139
|
-
}, "Event Dates: "), /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.PeriodValue, {
|
|
139
|
+
}, "Event Dates: ") : "", (data === null || data === void 0 ? void 0 : (_data$eventDatesValue2 = data.eventDatesValue) === null || _data$eventDatesValue2 === void 0 ? void 0 : _data$eventDatesValue2.length) > 0 ? /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.PeriodValue, {
|
|
140
140
|
id: "PeriodValue"
|
|
141
|
-
}, data.eventDatesValue))))));
|
|
141
|
+
}, data.eventDatesValue) : "")))));
|
|
142
142
|
};
|
|
143
143
|
exports.TitleDescription = TitleDescription;
|
|
144
144
|
var _default = TitleDescription;
|
|
@@ -166,7 +166,7 @@ var TotalBenchmarkBarchart = function TotalBenchmarkBarchart(_ref) {
|
|
|
166
166
|
id: "BarchartContainer"
|
|
167
167
|
}, getFormattedBarChartData().length === 1 && /*#__PURE__*/_react.default.createElement(_recharts.BarChart, {
|
|
168
168
|
width: 224 * getSizeFactor(),
|
|
169
|
-
height:
|
|
169
|
+
height: 150 * heightFactor,
|
|
170
170
|
data: getFormattedBarChartData(),
|
|
171
171
|
margin: {
|
|
172
172
|
top: 40 * heightFactor,
|