order-management 0.0.26 → 0.0.27

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.
@@ -872,7 +872,7 @@ const SwapDetailPage = () => {
872
872
  setSwap(payload.swap);
873
873
  setUpdateSuccess(true);
874
874
  setTimeout(() => setUpdateSuccess(false), 3e3);
875
- window.location.href = `/app/orders/${swap.order_id}`;
875
+ window.location.href = `/app/orders/${swap.order_id}/exchanges`;
876
876
  } catch (updateErr) {
877
877
  const message = updateErr instanceof Error ? updateErr.message : "Unable to prepare swap for exchange creation";
878
878
  setUpdateError(message);
@@ -1178,12 +1178,6 @@ const routeModule = {
1178
1178
  };
1179
1179
  const menuItemModule = {
1180
1180
  menuItems: [
1181
- {
1182
- label: config$2.label,
1183
- icon: config$2.icon,
1184
- path: "/swaps",
1185
- nested: void 0
1186
- },
1187
1181
  {
1188
1182
  label: config$3.label,
1189
1183
  icon: config$3.icon,
@@ -1191,9 +1185,9 @@ const menuItemModule = {
1191
1185
  nested: void 0
1192
1186
  },
1193
1187
  {
1194
- label: config.label,
1195
- icon: config.icon,
1196
- path: "/swaps/:id",
1188
+ label: config$2.label,
1189
+ icon: config$2.icon,
1190
+ path: "/swaps",
1197
1191
  nested: void 0
1198
1192
  },
1199
1193
  {
@@ -1201,6 +1195,12 @@ const menuItemModule = {
1201
1195
  icon: config$1.icon,
1202
1196
  path: "/returns/:id",
1203
1197
  nested: void 0
1198
+ },
1199
+ {
1200
+ label: config.label,
1201
+ icon: config.icon,
1202
+ path: "/swaps/:id",
1203
+ nested: void 0
1204
1204
  }
1205
1205
  ]
1206
1206
  };
@@ -871,7 +871,7 @@ const SwapDetailPage = () => {
871
871
  setSwap(payload.swap);
872
872
  setUpdateSuccess(true);
873
873
  setTimeout(() => setUpdateSuccess(false), 3e3);
874
- window.location.href = `/app/orders/${swap.order_id}`;
874
+ window.location.href = `/app/orders/${swap.order_id}/exchanges`;
875
875
  } catch (updateErr) {
876
876
  const message = updateErr instanceof Error ? updateErr.message : "Unable to prepare swap for exchange creation";
877
877
  setUpdateError(message);
@@ -1177,12 +1177,6 @@ const routeModule = {
1177
1177
  };
1178
1178
  const menuItemModule = {
1179
1179
  menuItems: [
1180
- {
1181
- label: config$2.label,
1182
- icon: config$2.icon,
1183
- path: "/swaps",
1184
- nested: void 0
1185
- },
1186
1180
  {
1187
1181
  label: config$3.label,
1188
1182
  icon: config$3.icon,
@@ -1190,9 +1184,9 @@ const menuItemModule = {
1190
1184
  nested: void 0
1191
1185
  },
1192
1186
  {
1193
- label: config.label,
1194
- icon: config.icon,
1195
- path: "/swaps/:id",
1187
+ label: config$2.label,
1188
+ icon: config$2.icon,
1189
+ path: "/swaps",
1196
1190
  nested: void 0
1197
1191
  },
1198
1192
  {
@@ -1200,6 +1194,12 @@ const menuItemModule = {
1200
1194
  icon: config$1.icon,
1201
1195
  path: "/returns/:id",
1202
1196
  nested: void 0
1197
+ },
1198
+ {
1199
+ label: config.label,
1200
+ icon: config.icon,
1201
+ path: "/swaps/:id",
1202
+ nested: void 0
1203
1203
  }
1204
1204
  ]
1205
1205
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "order-management",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "A starter for Medusa plugins.",
5
5
  "author": "Medusa (https://medusajs.com)",
6
6
  "license": "MIT",