Skip to content

Commit

Permalink
feat: edit service zone areas
Browse files Browse the repository at this point in the history
  • Loading branch information
fPolic committed May 13, 2024
1 parent ff55f91 commit f50bb34
Show file tree
Hide file tree
Showing 8 changed files with 415 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
},
"actions": {
"save": "Save",
"select": "Select",
"saveAsDraft": "Save as draft",
"publish": "Publish",
"create": "Create",
Expand Down Expand Up @@ -714,10 +715,12 @@
"edit": {
"title": "Edit Service Zone"
},
"editAreasTitle": "Manage {{zone}} areas",
"deleteWarning": "Are you sure you want to delete \"{{name}}\". This will also delete all assocciated shipping options.",
"toast": {
"delete": "Zone \"{{name}}\" deleted successfully."
},
"manageAreas": "Manage areas",
"editPrices": "Edit prices",
"editOption": "Edit option",
"optionsLength_one": "shipping option",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,13 @@ export const RouteMap: RouteObject[] = [
"../../v2-routes/shipping/service-zone-edit"
),
},
{
path: "edit-areas",
lazy: () =>
import(
"../../v2-routes/shipping/service-zone-areas-edit"
),
},
{
path: "shipping-option",
children: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,16 +385,16 @@ function ServiceZone({ zone, locationId, fulfillmentSetId }: ServiceZoneProps) {
groups={[
{
actions: [
// {
// label: t("shipping.serviceZone.addOption"),
// icon: <Plus />,
// to: `/settings/shipping/${locationId}/fulfillment-set/${fulfillmentSetId}/service-zone/${zone.id}/shipping-option/create`,
// },
{
label: t("actions.edit"),
icon: <PencilSquare />,
to: `/settings/shipping/${locationId}/fulfillment-set/${fulfillmentSetId}/service-zone/${zone.id}/edit`,
},
{
label: t("shipping.serviceZone.manageAreas"),
icon: <Map />,
to: `/settings/shipping/${locationId}/fulfillment-set/${fulfillmentSetId}/service-zone/${zone.id}/edit-areas`,
},
{
label: t("actions.delete"),
icon: <Trash />,
Expand Down
Loading

0 comments on commit f50bb34

Please sign in to comment.