sag_components 1.0.203 → 1.0.204

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.
@@ -16,16 +16,14 @@ var _HannafordIcon = require("./icons/HannafordIcon");
16
16
  var _StopAndShopIcon = require("./icons/StopAndShopIcon");
17
17
  var _TheGiantCompanyIcon = require("./icons/TheGiantCompanyIcon");
18
18
  var _TitleDescriptionStyle = require("./TitleDescription.style.js");
19
- var _excluded = ["showRetailerIcon", "data", "infoButtonOnClick", "objectivesShowMoreOnClick", "viewCreativeOnClick", "downloadButtonOnClick", "width", "height", "textColor"];
19
+ var _excluded = ["showRetailerIcon", "data", "viewCreativeOnClick", "width", "height", "textColor"];
20
20
  /*TitleDescription*/
21
21
  var TitleDescription = function TitleDescription(_ref) {
22
+ var _data$objectivesDescr;
22
23
  var _ref$showRetailerIcon = _ref.showRetailerIcon,
23
24
  showRetailerIcon = _ref$showRetailerIcon === void 0 ? true : _ref$showRetailerIcon,
24
25
  data = _ref.data,
25
- infoButtonOnClick = _ref.infoButtonOnClick,
26
- objectivesShowMoreOnClick = _ref.objectivesShowMoreOnClick,
27
26
  viewCreativeOnClick = _ref.viewCreativeOnClick,
28
- downloadButtonOnClick = _ref.downloadButtonOnClick,
29
27
  _ref$width = _ref.width,
30
28
  width = _ref$width === void 0 ? "100%" : _ref$width,
31
29
  _ref$height = _ref.height,
@@ -127,15 +125,7 @@ var TitleDescription = function TitleDescription(_ref) {
127
125
  id: "ObjectivesDescription"
128
126
  }, /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.ObjectivesTitle, {
129
127
  id: "ObjectivesTitle"
130
- }, "Objectives:", " "), data.objectivesDescription, /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.ObjectivesShowMore, {
131
- id: "ObjectivesShowMore",
132
- onClick: function onClick(event) {
133
- objectivesShowMoreOnClick({
134
- eventName: "objectivesShowMoreOnClick",
135
- event: event
136
- });
137
- }
138
- }, " ", " show more ..."))), /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.PeriodsContainer, {
128
+ }, (data === null || data === void 0 ? void 0 : (_data$objectivesDescr = data.objectivesDescription) === null || _data$objectivesDescr === void 0 ? void 0 : _data$objectivesDescr.length) > 0 ? "Objectives: " : ""), data.objectivesDescription)), /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.PeriodsContainer, {
139
129
  id: "PeriodsContainer"
140
130
  }, /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.SubLineContainer, {
141
131
  id: "SubLineContainer"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.203",
3
+ "version": "1.0.204",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {