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
f7517e66
Commit
f7517e66
authored
Oct 31, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the logo dynamic at sidebar
parent
49368af2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
6 deletions
+15
-6
page.tsx
src/app/(dashboard)/(user)/(outsideAuth)/page.tsx
+1
-0
index.tsx
src/components/organism/Sidebar/index.tsx
+4
-2
index.tsx
...erDashboard/buyCoins/buyCoinSinlgeGame/checkout/index.tsx
+2
-2
menuApi.ts
src/services/menuApi.ts
+8
-2
No files found.
src/app/(dashboard)/(user)/(outsideAuth)/page.tsx
View file @
f7517e66
...
@@ -60,6 +60,7 @@ export default async function Home() {
...
@@ -60,6 +60,7 @@ export default async function Home() {
subBannersError
=
"Failed to load sub banners."
;
subBannersError
=
"Failed to load sub banners."
;
}
}
console
.
log
(
banners
);
return
(
return
(
<
DashboardProvider
>
<
DashboardProvider
>
<>
<>
...
...
src/components/organism/Sidebar/index.tsx
View file @
f7517e66
...
@@ -15,6 +15,7 @@ import { IconButton } from '@mui/material';
...
@@ -15,6 +15,7 @@ import { IconButton } from '@mui/material';
import
{
Add
,
CloseCircle
}
from
'@wandersonalwes/iconsax-react'
;
import
{
Add
,
CloseCircle
}
from
'@wandersonalwes/iconsax-react'
;
import
Link
from
'next/link'
;
import
Link
from
'next/link'
;
import
{
usePathname
}
from
'next/navigation'
;
import
{
usePathname
}
from
'next/navigation'
;
import
{
useGetSeoDataQuery
}
from
'@/services/menuApi'
;
const
drawerWidth
=
DRAWER_WIDTH
;
const
drawerWidth
=
DRAWER_WIDTH
;
const
openedMixin
=
(
theme
:
Theme
):
CSSObject
=>
({
const
openedMixin
=
(
theme
:
Theme
):
CSSObject
=>
({
...
@@ -122,13 +123,14 @@ export default function Sidebar({ open, handleDrawerOpen, handleMobileMenuToggle
...
@@ -122,13 +123,14 @@ export default function Sidebar({ open, handleDrawerOpen, handleMobileMenuToggle
// document.removeEventListener('mousedown', handleClickOutside);
// document.removeEventListener('mousedown', handleClickOutside);
// };
// };
// }, [pathname, mobileMenuOpen, handleMobileMenuToggle, ref]);
// }, [pathname, mobileMenuOpen, handleMobileMenuToggle, ref]);
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 overflow-auto 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 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=
"flex justify-between items-center p-4 "
>
<
div
className=
"flex justify-between items-center p-4 "
>
<
Link
href=
"/"
>
<
Link
href=
"/"
>
<
Image
src=
"/assets/images/logo.png"
alt=
"Logo"
width=
{
102
}
height=
{
56
}
/>
<
Image
src=
{
data
?.
data
?.
logo
||
""
}
alt=
"Logo"
width=
{
102
}
height=
{
56
}
/>
</
Link
>
</
Link
>
<
IconButton
<
IconButton
color=
"inherit"
color=
"inherit"
...
@@ -162,7 +164,7 @@ export default function Sidebar({ open, handleDrawerOpen, handleMobileMenuToggle
...
@@ -162,7 +164,7 @@ export default function Sidebar({ open, handleDrawerOpen, handleMobileMenuToggle
<
DrawerHeader
sx=
{
{
justifyContent
:
"center"
}
}
>
<
DrawerHeader
sx=
{
{
justifyContent
:
"center"
}
}
>
{
/* <HambergerMenu /> */
}
{
/* <HambergerMenu /> */
}
<
Link
href=
"/"
>
<
Link
href=
"/"
>
<
Image
src=
"/assets/images/logo.png"
alt=
"Logo"
width=
{
102
}
height=
{
56
}
/>
<
Image
src=
{
data
?.
data
?.
logo
||
""
}
alt=
"Logo"
width=
{
102
}
height=
{
56
}
/>
</
Link
>
</
Link
>
{
/* <IconButton
{
/* <IconButton
color="inherit"
color="inherit"
...
...
src/components/pages/dashboard/userDashboard/buyCoins/buyCoinSinlgeGame/checkout/index.tsx
View file @
f7517e66
...
@@ -89,7 +89,7 @@ export default function CheckoutPage({ amount, slug, bonus }: {
...
@@ -89,7 +89,7 @@ export default function CheckoutPage({ amount, slug, bonus }: {
</
div
>
</
div
>
</
GlassWrapper
>
</
GlassWrapper
>
</
div
>
</
div
>
<
div
className=
"col-sl
"
>
{
/* <div className="col-span-1
">
<GlassWrapper>
<GlassWrapper>
<div className="py-5 px-4 flex justify-between items-center cursor-pointer" onClick={() => setCurrentPaymentMode("idem")}>
<div className="py-5 px-4 flex justify-between items-center cursor-pointer" onClick={() => setCurrentPaymentMode("idem")}>
<span className="text-[14px] flex items-center justify-start gap-2"><BitcoinRefresh />IDEM</span>
<span className="text-[14px] flex items-center justify-start gap-2"><BitcoinRefresh />IDEM</span>
...
@@ -97,7 +97,7 @@ export default function CheckoutPage({ amount, slug, bonus }: {
...
@@ -97,7 +97,7 @@ export default function CheckoutPage({ amount, slug, bonus }: {
</div>
</div>
</GlassWrapper>
</GlassWrapper>
</
div
>
</div>
*/
}
</
div
>
</
div
>
<
Button
type=
'submit'
variant=
'contained'
color=
'primary'
className=
'!mt-3'
onClick=
{
async
()
=>
{
<
Button
type=
'submit'
variant=
'contained'
color=
'primary'
className=
'!mt-3'
onClick=
{
async
()
=>
{
...
...
src/services/menuApi.ts
View file @
f7517e66
...
@@ -50,8 +50,14 @@ export const userMenuApi = createApi({
...
@@ -50,8 +50,14 @@ export const userMenuApi = createApi({
url
:
"api/general/menus"
,
url
:
"api/general/menus"
,
method
:
"GET"
method
:
"GET"
})
})
}),
getSeoData
:
builder
.
query
<
any
,
void
>
({
query
:
()
=>
({
url
:
"/api/general/home/seo"
,
method
:
"GET"
})
})
})
})
})
})
})
export
const
{
useGetAllUserMenuQuery
}
=
userMenuApi
;
export
const
{
useGetAllUserMenuQuery
,
useGetSeoDataQuery
}
=
userMenuApi
;
\ No newline at end of file
\ 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