revert to client sided data fetching
All checks were successful
deploy / deploy (push) Successful in 47s
All checks were successful
deploy / deploy (push) Successful in 47s
This commit is contained in:
14
src/app/ranking/country/[country]/page.tsx
Normal file
14
src/app/ranking/country/[country]/page.tsx
Normal file
@ -0,0 +1,14 @@
|
||||
import GlobalRanking from "@/components/player/GlobalRanking";
|
||||
import { getPageFromSearchQuery } from "@/utils/utils";
|
||||
import { headers } from "next/headers";
|
||||
|
||||
type RankingCountryProps = {
|
||||
params: { country: string };
|
||||
};
|
||||
|
||||
export default function RankingCountry({ params }: RankingCountryProps) {
|
||||
const page = getPageFromSearchQuery(headers());
|
||||
const country = params.country;
|
||||
|
||||
return <GlobalRanking page={page} country={country} />;
|
||||
}
|
Reference in New Issue
Block a user