Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sweepstake
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arjun Jhukal
sweepstake
Commits
f75f34c4
Commit
f75f34c4
authored
Oct 09, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udpated the page redirection issue replace the listButton from mui to link component from react
parent
ad8b3007
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
PrimaryMenu.tsx
src/components/organism/Sidebar/UserSidebar/PrimaryMenu.tsx
+10
-3
No files found.
src/components/organism/Sidebar/UserSidebar/PrimaryMenu.tsx
View file @
f75f34c4
...
@@ -4,6 +4,7 @@ import { ReceiptEdit } from "@wandersonalwes/iconsax-react";
...
@@ -4,6 +4,7 @@ import { ReceiptEdit } from "@wandersonalwes/iconsax-react";
import
{
PATH
}
from
"@/routes/PATH"
;
import
{
PATH
}
from
"@/routes/PATH"
;
import
{
getAllMenus
}
from
"@/serverApi/menu"
;
import
{
getAllMenus
}
from
"@/serverApi/menu"
;
import
{
useGetAllUserMenuQuery
}
from
"@/services/menuApi"
;
import
{
useGetAllUserMenuQuery
}
from
"@/services/menuApi"
;
import
Link
from
"next/link"
;
export
default
function
PrimaryMenu
()
{
export
default
function
PrimaryMenu
()
{
const
{
data
}
=
useGetAllUserMenuQuery
();
const
{
data
}
=
useGetAllUserMenuQuery
();
...
@@ -11,13 +12,19 @@ export default function PrimaryMenu() {
...
@@ -11,13 +12,19 @@ export default function PrimaryMenu() {
return
(
return
(
<
List
>
<
List
>
{
data
?
data
?.
data
?.
map
((
menu
:
any
)
=>
(
{
data
?
data
?.
data
?.
map
((
menu
:
any
)
=>
(
<
ListItem
key=
{
menu
.
slug
}
>
<
ListItem
key=
{
menu
.
name
}
>
<
ListItemButton
component=
"a"
href=
{
menu
.
slug
?
`/general/${menu.slug}`
:
"#"
}
>
{
/*
<ListItemButton component="a" href={menu.slug ? `/general/${menu.slug}` : "#"}>
<ListItemIcon>
<ListItemIcon>
<ReceiptEdit size={18} />
<ReceiptEdit size={18} />
</ListItemIcon>
</ListItemIcon>
<ListItemText primary={menu.name} />
<ListItemText primary={menu.name} />
</
ListItemButton
>
</ListItemButton> */
}
<
Link
href=
{
menu
.
slug
?
`/general/${menu.slug}`
:
"#"
}
className=
"flex gap-2 items-center py-2"
>
<
ListItemIcon
>
<
ReceiptEdit
size=
{
18
}
/>
</
ListItemIcon
>
<
ListItemText
primary=
{
menu
.
name
}
/>
</
Link
>
</
ListItem
>
</
ListItem
>
))
))
:
(
:
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment