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
5ce47297
Commit
5ce47297
authored
Sep 14, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the search filter for admin
parent
91cc1cd6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
21 deletions
+24
-21
AdminSearchBar.tsx
...components/organism/Header/AdminHeader/AdminSearchBar.tsx
+6
-8
index.tsx
src/components/organism/Header/AdminHeader/index.tsx
+12
-8
index.tsx
src/components/organism/Sidebar/AdminSidebar/index.tsx
+1
-1
PATH.ts
src/routes/PATH.ts
+5
-4
No files found.
src/components/organism/Header/AdminHeader/AdminSearchBar.tsx
View file @
5ce47297
// "use client";
// "use client";
import
{
Box
}
from
"@mui/material"
;
import
{
Box
}
from
"@mui/material"
;
import
OutlinedInput
from
"@mui/material/OutlinedInput"
;
import
{
SearchNormal
}
from
"@wandersonalwes/iconsax-react"
;
import
React
from
'react'
import
React
from
'react'
export
default
function
AdminSearchBar
()
{
export
default
function
AdminSearchBar
()
{
return
(
return
(
<
Box
>
<
Box
>
<
OutlinedInput
<
div
className=
"inpute__field relative"
>
name=
'search'
<
input
type=
"search"
placeholder=
"Ctrl + K"
name=
"search"
id=
"search"
className=
"rounded-[4px] border-solid border-[1px] border-gray pl-5 outline-none focus:outline-primary-light"
/>
id=
'search'
<
SearchNormal
color=
"#71717A"
size=
{
18
}
className=
"absolute left-2 top-1/2 transform -translate-y-1/2"
/>
placeholder=
'Ctrl + K'
</
div
>
/>
</
Box
>
</
Box
>
)
)
}
}
src/components/organism/Header/AdminHeader/index.tsx
View file @
5ce47297
import
{
Box
,
IconButton
}
from
'@mui/material'
"use client"
;
import
React
from
'react'
// import AdminSearchBar from './AdminSearchBar'
import
dynamic
from
"next/dynamic"
;
import
{
Box
,
IconButton
,
Input
}
from
'@mui/material'
import
React
from
'react'
import
{
Add
}
from
'@wandersonalwes/iconsax-react'
;
import
{
Add
}
from
'@wandersonalwes/iconsax-react'
;
import
NotificationPage
from
'../Notification'
;
import
NotificationPage
from
'../Notification'
;
import
Profile
from
'../Profile'
;
import
Profile
from
'../Profile'
;
import
AdminSearchBar
from
'./AdminSearchBar'
;
const
AdminSearchBar
=
dynamic
(()
=>
import
(
"./AdminSearchBar"
),
{
ssr
:
false
});
export
default
function
AdminHeader
()
{
export
default
function
AdminHeader
()
{
const
[
mounted
,
setMounted
]
=
React
.
useState
(
false
);
React
.
useEffect
(()
=>
{
setMounted
(
true
);
},
[]);
return
(
return
(
<
Box
className=
'flex items-center gap-4 ju
tify-content
-between w-full'
>
<
Box
className=
'flex items-center gap-4 ju
stify
-between w-full'
>
{
/* <AdminSearchBar /> */
}
<
AdminSearchBar
/>
<
input
type=
"text"
/>
{
/* <Input /> */
}
<
div
className=
"right flex items-center gap-4"
>
<
div
className=
"right flex items-center gap-4"
>
<
IconButton
<
IconButton
color=
"inherit"
color=
"inherit"
...
...
src/components/organism/Sidebar/AdminSidebar/index.tsx
View file @
5ce47297
...
@@ -13,7 +13,7 @@ export default function AdminMenu({ open }: { open: boolean }) {
...
@@ -13,7 +13,7 @@ export default function AdminMenu({ open }: { open: boolean }) {
<
ListItemButton
<
ListItemButton
className=
{
[
className=
{
[
open
?
"expanded"
:
"collapsed"
,
open
?
"expanded"
:
"collapsed"
,
pathname
.
startsWith
(
PATH
.
DASHBOARD
.
ROOT
)
?
"active"
:
""
pathname
===
"/"
?
"active"
:
""
].
join
(
" "
)
}
].
join
(
" "
)
}
onClick=
{
()
=>
{
router
.
push
(
PATH
.
DASHBOARD
.
ROOT
)
}
}
onClick=
{
()
=>
{
router
.
push
(
PATH
.
DASHBOARD
.
ROOT
)
}
}
...
...
src/routes/PATH.ts
View file @
5ce47297
...
@@ -18,18 +18,18 @@ export const PATH = {
...
@@ -18,18 +18,18 @@ export const PATH = {
},
},
ADMIN
:
{
ADMIN
:
{
GAMES
:
{
GAMES
:
{
ROOT
:
"admin/games"
,
ROOT
:
"
/
admin/games"
,
ADD_GAME
:
{
ADD_GAME
:
{
ROOT
:
"admin/games/add-game"
ROOT
:
"
/
admin/games/add-game"
},
},
EDIT_GAME
:
{
EDIT_GAME
:
{
ROOT
:
"admin/games/edit-game/:id"
ROOT
:
"
/
admin/games/edit-game/:id"
}
}
}
}
},
},
USER
:
{
USER
:
{
GAMES
:
{
GAMES
:
{
ROOT
:
"user/games"
,
ROOT
:
"
/
user/games"
,
}
}
}
}
}
}
\ No newline at end of file
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