ordering-ui-admin-external 1.43.70 → 1.43.72

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.
@@ -40,7 +40,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
40
40
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
41
41
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
42
42
  var HomeUI = function HomeUI(props) {
43
- var _configs$white_label_, _projectStatus$projec, _sessionState$user, _projectStatus$projec2, _projectStatus$projec3, _project$projectStatu, _projectStatus$projec4, _projectStatus$projec5, _project$projectStatu2, _projectStatus$projec6, _projectStatus$projec7, _project$projectStatu3, _projectStatus$projec8, _project$projectStatu4, _projectStatus$projec9, _sessionState$user2, _sessionState$user3;
43
+ var _configs$white_label_, _projectStatus$projec, _sessionState$user, _projectStatus$projec2, _projectStatus$projec3, _project$projectStatu, _projectStatus$projec4, _projectStatus$projec5, _project$projectStatu2, _projectStatus$projec6, _projectStatus$projec7, _project$projectStatu3, _projectStatus$projec8, _project$projectStatu4, _projectStatus$projec9, _sessionState$user2;
44
44
  var ordersList = props.ordersList,
45
45
  todaySalelsList = props.todaySalelsList,
46
46
  monthSalesList = props.monthSalesList,
@@ -108,9 +108,6 @@ var HomeUI = function HomeUI(props) {
108
108
  if (location === 'tech') {
109
109
  window.open('https://support.ordering.co', '_blank');
110
110
  }
111
- if (location === 'canny') {
112
- window.open('https://feedback.ordering.co', '_blank');
113
- }
114
111
  if (location === 'onboarding') {
115
112
  window.open("https://calendly.com/luisana/group-onboarding-conference?month=".concat((0, _moment.default)().format('YYYY-MM')), '_blank');
116
113
  }
@@ -326,15 +323,7 @@ var HomeUI = function HomeUI(props) {
326
323
  onClick: function onClick() {
327
324
  return goToLink('onboarding');
328
325
  }
329
- }, t('SCHEDULE_TODAY', 'Schedule Today')))), (sessionState === null || sessionState === void 0 || (_sessionState$user3 = sessionState.user) === null || _sessionState$user3 === void 0 ? void 0 : _sessionState$user3.level) === 0 && /*#__PURE__*/_react.default.createElement(_styles.FeedbackWidgets, null, /*#__PURE__*/_react.default.createElement(_styles.ParagraphHeaders, null, /*#__PURE__*/_react.default.createElement("p", null, t('FEEDBACK', 'Feedback'))), /*#__PURE__*/_react.default.createElement(_styles.FeedbackContainer, null, /*#__PURE__*/_react.default.createElement("h2", null, t('SHARE_WITH_US_YOUR_IDEAS', 'Share with us your ideas')), /*#__PURE__*/_react.default.createElement("p", {
330
- className: "center"
331
- }, t('FEEDBACK_DESCRIPTION', 'Do you think our functionalities can be improved or do you want to see a new feature?')), /*#__PURE__*/_react.default.createElement("p", null, t('SHARE_US_YOUR_COMMENTS', 'Share us your comments')), /*#__PURE__*/_react.default.createElement(_styles.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
332
- outline: true,
333
- color: "primary",
334
- onClick: function onClick() {
335
- return goToLink('canny');
336
- }
337
- }, t('REQUESTS', 'Requests')))))), /*#__PURE__*/_react.default.createElement(_Shared.Modal, {
326
+ }, t('SCHEDULE_TODAY', 'Schedule Today'))))), /*#__PURE__*/_react.default.createElement(_Shared.Modal, {
338
327
  width: "769px",
339
328
  padding: "30px",
340
329
  title: t('ORDERING', 'Ordering'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-admin-external",
3
- "version": "1.43.70",
3
+ "version": "1.43.72",
4
4
  "description": "Ordering UI Admin Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -83,7 +83,7 @@
83
83
  "lodash": "^4.17.20",
84
84
  "moment": "^2.29.1",
85
85
  "moment-range": "^4.0.2",
86
- "ordering-components-admin-external": "1.43.46",
86
+ "ordering-components-admin-external": "1.43.47",
87
87
  "polished": "^3.6.7",
88
88
  "prop-types": "^15.7.2",
89
89
  "react-big-calendar": "^1.4.2",
@@ -34,9 +34,6 @@ import {
34
34
  AssistanceTitle,
35
35
  AssistanceBody,
36
36
  WidgeBlock,
37
- FeedbackWidgets,
38
- FeedbackContainer,
39
- ButtonWrapper,
40
37
  ProjectStatusContainer,
41
38
  ProjectInfoWrapper,
42
39
  GreetingText,
@@ -95,9 +92,6 @@ const HomeUI = (props) => {
95
92
  if (location === 'tech') {
96
93
  window.open('https://support.ordering.co', '_blank')
97
94
  }
98
- if (location === 'canny') {
99
- window.open('https://feedback.ordering.co', '_blank')
100
- }
101
95
  if (location === 'onboarding') {
102
96
  window.open(`https://calendly.com/luisana/group-onboarding-conference?month=${moment().format('YYYY-MM')}`, '_blank')
103
97
  }
@@ -375,21 +369,6 @@ const HomeUI = (props) => {
375
369
  )}
376
370
  </>
377
371
  )}
378
- {sessionState?.user?.level === 0 && (
379
- <FeedbackWidgets>
380
- <ParagraphHeaders>
381
- <p>{t('FEEDBACK', 'Feedback')}</p>
382
- </ParagraphHeaders>
383
- <FeedbackContainer>
384
- <h2>{t('SHARE_WITH_US_YOUR_IDEAS', 'Share with us your ideas')}</h2>
385
- <p className='center'>{t('FEEDBACK_DESCRIPTION', 'Do you think our functionalities can be improved or do you want to see a new feature?')}</p>
386
- <p>{t('SHARE_US_YOUR_COMMENTS', 'Share us your comments')}</p>
387
- <ButtonWrapper>
388
- <Button outline color='primary' onClick={() => goToLink('canny')}>{t('REQUESTS', 'Requests')}</Button>
389
- </ButtonWrapper>
390
- </FeedbackContainer>
391
- </FeedbackWidgets>
392
- )}
393
372
  </HomeContainer>
394
373
  <Modal
395
374
  width='769px'