@bigbinary/neeto-webhooks-frontend 1.6.29 → 1.6.30

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.
package/dist/index.js CHANGED
@@ -646,7 +646,8 @@ var TransactionDetails = function TransactionDetails(_ref) {
646
646
  t = _useTranslation.t;
647
647
  var status = delivery.status,
648
648
  identifier = delivery.identifier,
649
- responseStatusCode = delivery.responseStatusCode;
649
+ responseStatusCode = delivery.responseStatusCode,
650
+ sid = delivery.sid;
650
651
  var renderPayload = function renderPayload() {
651
652
  try {
652
653
  return JSON.stringify(JSON.parse(delivery.requestBody), null, 2);
@@ -661,7 +662,15 @@ var TransactionDetails = function TransactionDetails(_ref) {
661
662
  className: "flex w-full flex-col space-y-2 pb-4",
662
663
  children: [/*#__PURE__*/jsxs("span", {
663
664
  className: "flex items-center space-x-1",
664
- children: [t("neetoWebhooks.delivery.identifier"), ":", /*#__PURE__*/jsx(Typography, {
665
+ children: [t("neetoWebhooks.delivery.sid"), ":", /*#__PURE__*/jsx(Typography, {
666
+ className: "px-2 font-bold",
667
+ "data-cy": "delivery-sid",
668
+ style: "body2",
669
+ children: sid
670
+ })]
671
+ }), /*#__PURE__*/jsxs("span", {
672
+ className: "flex items-center space-x-1",
673
+ children: [t("neetoWebhooks.delivery.deliveryId"), ":", /*#__PURE__*/jsx(Typography, {
665
674
  className: "px-2 font-bold",
666
675
  "data-cy": "delivery-identifier",
667
676
  style: "body2",
@@ -827,9 +836,9 @@ var Details = function Details(_ref) {
827
836
  };
828
837
 
829
838
  var buildColumns$1 = function buildColumns(_ref) {
830
- var handleDetailsClick = _ref.handleDetailsClick;
839
+ var deliveryDetailsPath = _ref.deliveryDetailsPath;
831
840
  return [{
832
- title: t$1("neetoWebhooks.delivery.identifier", SINGULAR),
841
+ title: t$1("neetoWebhooks.delivery.deliveryId"),
833
842
  key: "identifier",
834
843
  dataIndex: "identifier",
835
844
  width: 390,
@@ -838,10 +847,10 @@ var buildColumns$1 = function buildColumns(_ref) {
838
847
  className: "flex items-center gap-x-3",
839
848
  children: [/*#__PURE__*/jsx(Button, {
840
849
  style: "link",
850
+ to: buildUrl(deliveryDetailsPath, {
851
+ deliveryId: delivery.sid
852
+ }),
841
853
  weight: "semibold",
842
- onClick: function onClick() {
843
- return handleDetailsClick(delivery.sid);
844
- },
845
854
  children: delivery.identifier
846
855
  }), delivery.redelivery && /*#__PURE__*/jsx(Tag, {
847
856
  style: "info",
@@ -931,11 +940,6 @@ var Deliveries = function Deliveries(_ref) {
931
940
  link: window.location.pathname,
932
941
  text: endpoint
933
942
  }]);
934
- var handleDetailsClick = function handleDetailsClick(sid) {
935
- return history.push(buildUrl(deliveryDetailsPath, {
936
- deliveryId: sid
937
- }));
938
- };
939
943
  var handleClose = function handleClose() {
940
944
  history.push(buildUrl(deliveriesPath, {
941
945
  webhookId: webhookId
@@ -953,7 +957,7 @@ var Deliveries = function Deliveries(_ref) {
953
957
  totalCount: totalCount,
954
958
  fixedHeight: true,
955
959
  columnData: buildColumns$1({
956
- handleDetailsClick: handleDetailsClick
960
+ deliveryDetailsPath: deliveryDetailsPath
957
961
  }),
958
962
  currentPageNumber: pageNumber,
959
963
  defaultPageSize: DEFAULT_PAGE_SIZE,