feat: create return reason (#8516)
* feat: create and edit return reasons * add prop to hide data table header * make return reasons searchable * hide table header
This commit is contained in:
@@ -264,6 +264,14 @@ export const useGlobalShortcuts = () => {
|
||||
type: "settingShortcut",
|
||||
to: "/settings/locations",
|
||||
},
|
||||
{
|
||||
keys: {
|
||||
Mac: ["G", ",", "M"],
|
||||
},
|
||||
label: t("app.keyboardShortcuts.settings.goToReturnReasons"),
|
||||
type: "settingShortcut",
|
||||
to: "/settings/return-reasons",
|
||||
},
|
||||
{
|
||||
keys: {
|
||||
Mac: ["G", ",", "J"],
|
||||
|
||||
@@ -1304,6 +1304,28 @@ export const RouteMap: RouteObject[] = [
|
||||
path: "",
|
||||
lazy: () =>
|
||||
import("../../routes/return-reasons/return-reason-list"),
|
||||
children: [
|
||||
{
|
||||
path: "create",
|
||||
lazy: () =>
|
||||
import(
|
||||
"../../routes/return-reasons/return-reason-create"
|
||||
),
|
||||
},
|
||||
|
||||
{
|
||||
path: ":id",
|
||||
children: [
|
||||
{
|
||||
path: "edit",
|
||||
lazy: () =>
|
||||
import(
|
||||
"../../routes/return-reasons/return-reason-edit"
|
||||
),
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user