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
25066b6c
Commit
25066b6c
authored
Nov 01, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the logo isseu
parent
616f54b4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
22 deletions
+14
-22
index.tsx
src/components/organism/Sidebar/AdminSidebar/index.tsx
+1
-1
index.tsx
src/components/organism/Sidebar/UserSidebar/index.tsx
+8
-3
index.tsx
src/components/organism/Sidebar/index.tsx
+5
-18
No files found.
src/components/organism/Sidebar/AdminSidebar/index.tsx
View file @
25066b6c
...
@@ -123,7 +123,7 @@ export default function AdminMenu({ open }: { open: boolean }) {
...
@@ -123,7 +123,7 @@ export default function AdminMenu({ open }: { open: boolean }) {
return
(
return
(
<
List
ref=
{
menuListRef
}
<
List
ref=
{
menuListRef
}
onMouseLeave=
{
handleMouseLeave
}
onMouseLeave=
{
handleMouseLeave
}
style=
{
{
position
:
'relative'
}
}
>
style=
{
{
position
:
'relative'
}
}
className=
{
` ${open ? "px-3" : ""}`
}
>
<
div
<
div
style=
{
{
style=
{
{
position
:
"absolute"
,
position
:
"absolute"
,
...
...
src/components/organism/Sidebar/UserSidebar/index.tsx
View file @
25066b6c
...
@@ -78,7 +78,11 @@ export default function UserMenu({ open }: { open: boolean }) {
...
@@ -78,7 +78,11 @@ export default function UserMenu({ open }: { open: boolean }) {
};
};
return
(
return
(
<
Box
>
<>
<
Box
sx=
{
{
maxHeight
:
"calc(100vh - 210px)"
,
overflowY
:
"auto"
,
}
}
className=
{
` ${open ? "px-3" : ""}`
}
>
{
/* Buy Coins & Withdraw */
}
{
/* Buy Coins & Withdraw */
}
{
open
&&
(
{
open
&&
(
<
Private
>
<
Private
>
...
@@ -163,8 +167,9 @@ export default function UserMenu({ open }: { open: boolean }) {
...
@@ -163,8 +167,9 @@ export default function UserMenu({ open }: { open: boolean }) {
<
PrimaryMenu
open=
{
open
}
/>
<
PrimaryMenu
open=
{
open
}
/>
</
div
>
</
div
>
</
Box
>
{
/* 💬 Support Section */
}
{
/* 💬 Support Section */
}
<
div
className=
"support mt-4"
>
<
div
className=
{
`support mt-4 ${open ? "px-3" : ""}`
}
>
<
Link
<
Link
href=
{
"/support"
}
href=
{
"/support"
}
className=
"ss-btn support__btn flex items-center gap-2 w-full justify-start"
className=
"ss-btn support__btn flex items-center gap-2 w-full justify-start"
...
@@ -183,6 +188,6 @@ export default function UserMenu({ open }: { open: boolean }) {
...
@@ -183,6 +188,6 @@ export default function UserMenu({ open }: { open: boolean }) {
</
div
>
</
div
>
)
:
null
}
)
:
null
}
</
div
>
</
div
>
</
Box
>
</>
);
);
}
}
src/components/organism/Sidebar/index.tsx
View file @
25066b6c
...
@@ -126,8 +126,8 @@ export default function Sidebar({ open, handleDrawerOpen, handleMobileMenuToggle
...
@@ -126,8 +126,8 @@ export default function Sidebar({ open, handleDrawerOpen, handleMobileMenuToggle
const
{
data
}
=
useGetSeoDataQuery
();
const
{
data
}
=
useGetSeoDataQuery
();
if
(
downLG
)
{
if
(
downLG
)
{
return
<
div
className=
{
`mobile__menu__wrapper fixed left-0 top-0 bottom-0 max-h-screen
overflow-auto
backdrop-blur-2xl bg-[#290139CF] w-full z-[9999] transition-all duration-300 ${mobileMenuOpen ? "opacity-100 visible" : "opacity-0 invisible"}`
}
>
return
<
div
className=
{
`mobile__menu__wrapper fixed left-0 top-0 bottom-0 max-h-screen backdrop-blur-2xl bg-[#290139CF] w-full z-[9999] transition-all duration-300 ${mobileMenuOpen ? "opacity-100 visible" : "opacity-0 invisible"}`
}
>
<
div
className=
{
`mobile__primary__menu max-w-[600px] w-full h-screen
overflow-auto
transition-all duration-300 ${mobileMenuOpen ? "opacity-100 visible translate-x-0" : "opacity-0 invisible translate-x-[-100%]"} ${user?.role && user.role.toUpperCase() === 'ADMIN' ? "bg-white" : "bg-[#11011E]"}`
}
ref=
{
ref
}
>
<
div
className=
{
`mobile__primary__menu max-w-[600px] w-full h-screen transition-all duration-300 ${mobileMenuOpen ? "opacity-100 visible translate-x-0" : "opacity-0 invisible translate-x-[-100%]"} ${user?.role && user.role.toUpperCase() === 'ADMIN' ? "bg-white" : "bg-[#11011E]"}`
}
ref=
{
ref
}
>
<
div
className=
"flex justify-between items-center p-4 "
>
<
div
className=
"flex justify-between items-center p-4 "
>
<
Link
href=
"/"
>
<
Link
href=
"/"
>
<
Image
src=
{
data
?.
data
?.
logo
||
""
}
alt=
"Logo"
width=
{
102
}
height=
{
56
}
/>
<
Image
src=
{
data
?.
data
?.
logo
||
""
}
alt=
"Logo"
width=
{
102
}
height=
{
56
}
/>
...
@@ -147,7 +147,7 @@ export default function Sidebar({ open, handleDrawerOpen, handleMobileMenuToggle
...
@@ -147,7 +147,7 @@ export default function Sidebar({ open, handleDrawerOpen, handleMobileMenuToggle
<
Add
className=
'!text-para-light rotate-45'
/>
<
Add
className=
'!text-para-light rotate-45'
/>
</
IconButton
>
</
IconButton
>
</
div
>
</
div
>
<
Box
className=
{
`mt-8 menu__wrapper
${open ? "px-3" : ""}
`
}
>
<
Box
className=
{
`mt-8 menu__wrapper `
}
>
{
{
user
?.
role
&&
user
.
role
.
toUpperCase
()
===
'ADMIN'
?
(
user
?.
role
&&
user
.
role
.
toUpperCase
()
===
'ADMIN'
?
(
<
AdminMenu
open=
{
open
}
/>
<
AdminMenu
open=
{
open
}
/>
...
@@ -161,27 +161,14 @@ export default function Sidebar({ open, handleDrawerOpen, handleMobileMenuToggle
...
@@ -161,27 +161,14 @@ export default function Sidebar({ open, handleDrawerOpen, handleMobileMenuToggle
}
}
return
(
return
(
<
Drawer
variant=
"permanent"
open=
{
open
}
downLG=
{
downLG
}
>
<
Drawer
variant=
"permanent"
open=
{
open
}
downLG=
{
downLG
}
>
<
DrawerHeader
sx=
{
{
justifyContent
:
"center"
}
}
>
<
DrawerHeader
sx=
{
{
justifyContent
:
"center"
,
marginTop
:
2
}
}
>
{
/* <HambergerMenu /> */
}
{
/* <HambergerMenu /> */
}
<
Link
href=
"/"
>
<
Link
href=
"/"
>
<
Image
src=
{
data
?.
data
?.
logo
||
""
}
alt=
"Logo"
width=
{
102
}
height=
{
56
}
/>
<
Image
src=
{
data
?.
data
?.
logo
||
""
}
alt=
"Logo"
width=
{
102
}
height=
{
56
}
/>
</
Link
>
</
Link
>
{
/* <IconButton
color="inherit"
aria-label="open drawer"
edge="start"
sx={[
{
maxWidth: "fit-content"
},
]}
className='!bg-light-gray !md:hidden'
>
<CloseCircle className='!text-para-light' />
</IconButton> */
}
</
DrawerHeader
>
</
DrawerHeader
>
<
Box
className=
{
`mt-8 menu__wrapper
${open ? "px-3" : ""}
`
}
>
<
Box
className=
{
`mt-8 menu__wrapper`
}
>
{
{
user
?.
role
&&
user
.
role
.
toUpperCase
()
===
'ADMIN'
?
(
user
?.
role
&&
user
.
role
.
toUpperCase
()
===
'ADMIN'
?
(
<
AdminMenu
open=
{
open
}
/>
<
AdminMenu
open=
{
open
}
/>
...
...
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