@bigbinary/neeto-webhooks-frontend 2.1.3 → 2.2.0

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.
@@ -1,4 +1,3 @@
1
- import React, { useState, useRef, useEffect, useCallback } from 'react';
2
1
  import { useRouteMatch, useHistory, useParams, Switch as Switch$1, Route } from 'react-router-dom';
3
2
  import { isPresent, removeBy, isNotEmpty, removeById, findBy } from '@bigbinary/neeto-cist';
4
3
  import { DEFAULT_STALE_TIME, SINGULAR, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_INDEX, PLURAL } from '@bigbinary/neeto-commons-frontend/constants';
@@ -19,6 +18,7 @@ import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
19
18
  import DateFormat from '@bigbinary/neeto-molecules/DateFormat';
20
19
  import Button from '@bigbinary/neetoui/Button';
21
20
  import Pane from '@bigbinary/neetoui/Pane';
21
+ import { useState, useRef, useEffect, memo, useCallback } from 'react';
22
22
  import Typography from '@bigbinary/neetoui/Typography';
23
23
  import Tab from '@bigbinary/neetoui/Tab';
24
24
  import Tag from '@bigbinary/neetoui/Tag';
@@ -829,7 +829,7 @@ var Details = function Details(_ref) {
829
829
  })
830
830
  }), /*#__PURE__*/jsxs(Pane.Footer, {
831
831
  className: "gap-x-2",
832
- children: [event && /*#__PURE__*/jsx(Button, {
832
+ children: [(delivery === null || delivery === void 0 ? void 0 : delivery.eventId) && /*#__PURE__*/jsx(Button, {
833
833
  disabled: isRedelivering,
834
834
  label: t("neetoWebhooks.delivery.redeliver"),
835
835
  loading: isRedelivering,
@@ -1496,7 +1496,7 @@ var Header = withT(function (_ref) {
1496
1496
  })]
1497
1497
  });
1498
1498
  });
1499
- var Header$1 = /*#__PURE__*/React.memo(Header);
1499
+ var Header$1 = /*#__PURE__*/memo(Header);
1500
1500
 
1501
1501
  var Webhooks = function Webhooks(_ref) {
1502
1502
  var deliveriesPath = _ref.deliveriesPath,