diff --git a/components/layout/sidebar/sidebar-mobile.tsx b/components/layout/sidebar/sidebar-mobile.tsx index 794bc79..a2ee2a6 100644 --- a/components/layout/sidebar/sidebar-mobile.tsx +++ b/components/layout/sidebar/sidebar-mobile.tsx @@ -110,7 +110,7 @@ const sidebarLevel3 = [ name: "Artikel", moduleId: 652, moduleName: "Dashboard", - modulePathUrl: `/admin/article?timestamp=${getUnixTimestamp()}`, + modulePathUrl: `/admin/article `, parentId: -1, icon: , position: 1, @@ -124,7 +124,7 @@ const sidebarLevel3 = [ name: "Kategori", moduleId: 654, moduleName: "Master", - modulePathUrl: `/admin/master-category?timestamp=${getUnixTimestamp()}`, + modulePathUrl: `/admin/master-category `, parentId: -1, icon: , position: 1, @@ -185,7 +185,7 @@ const sidebarLevel2 = [ name: "Artikel", moduleId: 652, moduleName: "Dashboard", - modulePathUrl: `/admin/article?timestamp=${getUnixTimestamp()}`, + modulePathUrl: `/admin/article `, parentId: -1, icon: , position: 1, @@ -199,7 +199,7 @@ const sidebarLevel2 = [ name: "Kategori", moduleId: 654, moduleName: "Master", - modulePathUrl: `/admin/master-category?timestamp=${getUnixTimestamp()}`, + modulePathUrl: `/admin/master-category `, parentId: -1, icon: , position: 1, @@ -702,7 +702,7 @@ const SidebarMobile: React.FC = ({ updateSidebarData }) => { title={item?.name} isActive={pathname.includes(item.modulePathUrl)} isParentActive={pathname.includes( - list.modulePathUrl + list.modulePathUrl, )} path={item.modulePathUrl} icon={item.icon} @@ -710,143 +710,143 @@ const SidebarMobile: React.FC = ({ updateSidebarData }) => { )), ]} /> - ) + ), ) : rolesId === "2" - ? sidebarLevel2?.map((list: any, index: number) => - list.isGroup ? ( -

- {isOpen ? list.name : "..."} -

- ) : list.childMenu?.length < 1 ? ( - isOpen ? ( - -
- {list.icon} {isOpen && list.name} -
- - ) : ( - + list.isGroup ? ( +

+ {isOpen ? list.name : "..."} +

+ ) : list.childMenu?.length < 1 ? ( + isOpen ? (
{list.icon} {isOpen && list.name}
-
- ) - ) : ( - ( - - )), - ]} - /> - ) - ) - : sidebarLevel3?.map((list: any, index: number) => - list.isGroup ? ( -

- {isOpen ? list.name : "..."} -

- ) : list.childMenu?.length < 1 ? ( - isOpen ? ( - -
- {list.icon} {isOpen && list.name} -
- + +
+ {list.icon} {isOpen && list.name} +
+ + + ) ) : ( - ( + + )), + ]} + /> + ), + ) + : sidebarLevel3?.map((list: any, index: number) => + list.isGroup ? ( +

+ {isOpen ? list.name : "..."} +

+ ) : list.childMenu?.length < 1 ? ( + isOpen ? (
{list.icon} {isOpen && list.name}
-
- ) - ) : ( - ( - - )), - ]} - /> - ) - )} + ) : ( + + +
+ {list.icon} {isOpen && list.name} +
+ +
+ ) + ) : ( + ( + + )), + ]} + /> + ), + )}
, position: 1, @@ -124,7 +128,7 @@ const sidebarLevel3 = [ name: "Kategori", moduleId: 654, moduleName: "Master", - modulePathUrl: `/admin/master-category?timestamp=${getUnixTimestamp()}`, + modulePathUrl: `/admin/master-category `, parentId: -1, icon: , position: 1, @@ -375,7 +379,7 @@ const sidebarLevel1 = [ name: "Artikel", moduleId: 652, moduleName: "Dashboard", - modulePathUrl: `/admin/article?timestamp=${getUnixTimestamp()}`, + modulePathUrl: `/admin/article `, parentId: -1, icon: , position: 1, @@ -389,7 +393,7 @@ const sidebarLevel1 = [ name: "Kategori", moduleId: 654, moduleName: "Master", - modulePathUrl: `/admin/master-category?timestamp=${getUnixTimestamp()}`, + modulePathUrl: `/admin/master-category `, parentId: -1, icon: , position: 1, @@ -709,7 +713,7 @@ const Sidebar: React.FC = ({ updateSidebarData }) => { title={item?.name} isActive={pathname.includes(item.modulePathUrl)} isParentActive={pathname.includes( - list.modulePathUrl + list.modulePathUrl, )} path={item.modulePathUrl} icon={item.icon} @@ -717,157 +721,157 @@ const Sidebar: React.FC = ({ updateSidebarData }) => { )), ]} /> - ) + ), ) : rolesId === "2" - ? sidebarLevel2?.map((list: any, index: number) => - list.isGroup ? ( -

- {isOpen ? list.name : "..."} -

- ) : list.childMenu?.length < 1 ? ( - isOpen ? ( - - {/*
+ list.isGroup ? ( +

+ {isOpen ? list.name : "..."} +

+ ) : list.childMenu?.length < 1 ? ( + isOpen ? ( + + {/*
*/} -
- {list.icon} {isOpen && list.name} -
- - ) : ( - -
{list.icon} {isOpen && list.name}
-
- ) - ) : ( - ( - - )), - ]} - /> + ) : ( + + +
+ {list.icon} {isOpen && list.name} +
+ +
+ ) + ) : ( + ( + + )), + ]} + /> + ), ) - ) - : sidebarLevel3?.map((list: any, index: number) => - list.isGroup ? ( -

- {isOpen ? list.name : "..."} -

- ) : list.childMenu?.length < 1 ? ( - isOpen ? ( - - {/*
+ list.isGroup ? ( +

+ {isOpen ? list.name : "..."} +

+ ) : list.childMenu?.length < 1 ? ( + isOpen ? ( + + {/*
*/} -
- {list.icon} {isOpen && list.name} -
- - ) : ( - -
{list.icon} {isOpen && list.name}
-
- ) - ) : ( - ( - - )), - ]} - /> - ) - )} + ) : ( + + +
+ {list.icon} {isOpen && list.name} +
+ +
+ ) + ) : ( + ( + + )), + ]} + /> + ), + )}