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
777f9ded
Commit
777f9ded
authored
Jan 20, 2026
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the detail page
parent
b1ae789a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
29 deletions
+10
-29
page.tsx
...board)/(user)/(outsideAuth)/exclusive-games/[id]/page.tsx
+10
-29
No files found.
src/app/(dashboard)/(user)/(outsideAuth)/exclusive-games/[id]/page.tsx
View file @
777f9ded
import
ExclusiveGameDetail
from
"@/components/pages/dashboard/userDashboard/games/exclusiveGames/exclusiveGameDetail"
;
import
ExclusiveGameDetail
from
"@/components/pages/dashboard/userDashboard/games/exclusiveGames/exclusiveGameDetail"
;
import
{
getSingleGame
}
from
"@/serverApi/game"
;
import
{
getSingleGame
}
from
"@/serverApi/game"
;
import
{
Metadata
}
from
"next"
;
import
{
Metadata
}
from
"next"
;
import
{
notFound
}
from
"next/navigation"
;
const
SITE_URL
=
process
.
env
.
NEXT_PUBLIC_FRONTEND_URL
!
;
const
SITE_URL
=
process
.
env
.
NEXT_PUBLIC_FRONTEND_URL
!
;
type
PageProps
=
{
export
async
function
generateMetadata
(
props
:
{
params
:
Promise
<
{
id
:
string
}
>
}):
Promise
<
Metadata
>
{
params
:
{
id
:
string
};
const
{
id
}
=
await
props
.
params
;
};
export
async
function
generateMetadata
(
{
params
}:
PageProps
):
Promise
<
Metadata
>
{
try
{
const
{
id
}
=
params
;
const
canonicalUrl
=
`
${
SITE_URL
}
/exclusive-games/
${
id
}
`
.
replace
(
/
\/
$/
,
""
);
const
canonicalUrl
=
`
${
SITE_URL
}
/exclusive-games/
${
id
}
`
.
replace
(
/
\/
$/
,
""
);
const
game
=
await
getSingleGame
(
id
);
const
game
=
await
getSingleGame
(
id
);
if
(
!
game
?.
data
)
{
return
{};
}
return
{
return
{
title
:
game
.
data
.
meta
?.
meta_title
||
game
.
data
.
name
,
title
:
game
?.
data
?.
meta
?.
meta_title
||
game
?.
data
?
.
name
,
description
:
game
.
data
.
meta
?.
meta_description
||
game
.
data
.
name
,
description
:
game
?.
data
?.
meta
?.
meta_description
||
game
?.
data
?
.
name
,
openGraph
:
{
openGraph
:
{
title
:
game
.
data
.
meta
?.
meta_title
||
game
.
data
.
name
,
title
:
game
?.
data
?.
meta
?.
meta_title
||
game
?.
data
?
.
name
,
description
:
game
.
data
.
meta
?.
meta_description
||
game
.
data
.
name
,
description
:
game
?.
data
?.
meta
?.
meta_description
||
game
?.
data
?
.
name
,
images
:
game
.
data
.
meta
?.
og_image_url
,
images
:
game
?.
data
?.
meta
?.
og_image_url
},
},
twitter
:
{
twitter
:
{
title
:
game
.
data
.
meta
?.
meta_title
||
game
.
data
.
name
,
title
:
game
?.
data
?.
meta
?.
meta_title
||
game
?.
data
?
.
name
,
description
:
game
.
data
.
meta
?.
meta_description
||
game
.
data
.
name
,
description
:
game
?.
data
?.
meta
?.
meta_description
||
game
?.
data
?
.
name
,
images
:
game
.
data
.
meta
?.
og_image_url
,
images
:
game
?.
data
?.
meta
?.
og_image_url
},
},
alternates
:
{
alternates
:
{
canonical
:
canonicalUrl
,
canonical
:
canonicalUrl
,
},
},
};
};
}
catch
{
return
{};
}
}
}
export
default
async
function
UserGameDetail
(
props
:
{
params
:
Promise
<
{
id
:
string
}
>
})
{
export
default
async
function
UserGameDetail
(
props
:
{
params
:
Promise
<
{
id
:
string
}
>
})
{
...
@@ -48,9 +33,5 @@ export default async function UserGameDetail(props: { params: Promise<{ id: stri
...
@@ -48,9 +33,5 @@ export default async function UserGameDetail(props: { params: Promise<{ id: stri
const
game
=
await
getSingleGame
(
id
);
const
game
=
await
getSingleGame
(
id
);
if
(
!
game
?.
data
)
{
notFound
();
}
return
<
ExclusiveGameDetail
game=
{
game
}
/>;
return
<
ExclusiveGameDetail
game=
{
game
}
/>;
}
}
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