We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 624c8c5 commit 4aa4cf9Copy full SHA for 4aa4cf9
1 file changed
app/player/[id]/page.tsx
@@ -2,11 +2,15 @@ import PlayerCard from '@/components/PlayerCard/PlayerCard'
2
3
import { getUserPublicProfileByPlayerId } from '@/app/actions/db/users'
4
5
+type SearchParams = Promise<{ celestial?: boolean }>
6
export default async function ProfilePage({
7
params,
8
+ searchParams,
9
}: {
10
params: Promise<{ id: string }>
11
+ searchParams: SearchParams
12
}) {
13
+ const { celestial = false } = await searchParams
14
const { id } = await params
15
let uuid: string | null
16
if (id.length === 4) {
@@ -23,7 +27,7 @@ export default async function ProfilePage({
23
27
userId={uuid}
24
28
tiltFactor={2.5}
25
29
gleamFollowsTilt
26
- asCelestialCard={false}
30
+ asCelestialCard={celestial}
31
/>
32
</div>
33
)
0 commit comments