diff --git a/src/app/ranking/country/[country]/page.tsx b/src/app/ranking/country/[country]/page.tsx
index bdf8f9a..fbfa8fd 100644
--- a/src/app/ranking/country/[country]/page.tsx
+++ b/src/app/ranking/country/[country]/page.tsx
@@ -20,11 +20,11 @@ type PageInfo = {
players: ScoresaberPlayer[];
};
-export default function RankingCountry({
- params,
-}: {
+type RankingCountryProps = {
params: { country: string };
-}) {
+};
+
+export default function RankingCountry({ params }: RankingCountryProps) {
const searchParams = useSearchParams();
const router = useRouter();
@@ -141,7 +141,7 @@ export default function RankingCountry({
{players.map((player) => (
-
+
))}
diff --git a/src/components/player/PlayerRanking.tsx b/src/components/player/PlayerRanking.tsx
index b78cf2a..c6c34ac 100644
--- a/src/components/player/PlayerRanking.tsx
+++ b/src/components/player/PlayerRanking.tsx
@@ -8,9 +8,13 @@ import Avatar from "../Avatar";
type PlayerRankingProps = {
player: ScoresaberPlayer;
+ showCountryFlag?: boolean;
};
-export default function PlayerRanking({ player }: PlayerRankingProps) {
+export default function PlayerRanking({
+ player,
+ showCountryFlag,
+}: PlayerRankingProps) {
const settingsStore = useStore(useSettingsStore, (store) => store);
return (
@@ -18,11 +22,13 @@ export default function PlayerRanking({ player }: PlayerRankingProps) {
#{formatNumber(player.rank)} |
-
+ {showCountryFlag && (
+
+ )}
|