Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Refactor AppRoot to handle PermissionEnum

Patrick Emmanuel7bce8b6e014a
diff --git a/saleor/static/dashboard-next/AppRoot.tsx b/saleor/static/dashboard-next/AppRoot.tsx
index 8bf0dc1b35..fbdf863575 100644
--- a/saleor/static/dashboard-next/AppRoot.tsx
+++ b/saleor/static/dashboard-next/AppRoot.tsx
@@ -34,6 +34,7 @@ import Shop from "./icons/Shop";
import Truck from "./icons/Truck";
import { removeDoubleSlashes } from "./misc";
import { productListUrl } from "./products";
+import { PermissionEnum } from './types/globalTypes';
const drawerWidth = 256;
const navigationBarHeight = 64;
@@ -236,7 +237,7 @@ interface IMenuItem {
children?: IMenuItem[];
icon: React.ReactNode;
label: string;
- permission?: string;
+ permission?: PermissionEnum;
url?: string;
}
interface MenuListProps {