From f41d980fd83ab7da5804efd8aa7e914e820797d6 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Wed, 11 Dec 2019 19:04:14 +0530 Subject: Permission Router - In-Progress --- src/core/custom.router.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/core/custom.router.js') diff --git a/src/core/custom.router.js b/src/core/custom.router.js index b3f08ec..c6b2859 100644 --- a/src/core/custom.router.js +++ b/src/core/custom.router.js @@ -7,7 +7,7 @@ export const CustomRouter = ({ xComponent: Component, ...xProps }) => { { - console.log(props.permissions) + let returnProps = {...xProps, ...props}; let token = Storage.get("token"); let pathName = props.match.path; if (!token && pathName !== "/login") { @@ -19,8 +19,7 @@ export const CustomRouter = ({ xComponent: Component, ...xProps }) => { return ; } - debugger - return ; + return ; }} /> ); -- cgit v1.2.3