From b9b3d9144a5fbb47c3b8855fdaeea2352ce08570 Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Sat, 12 Dec 2020 14:51:34 +0200 Subject: [PATCH] radios for selecting on player page --- locale/de/messages.json | 3 +++ locale/el/messages.json | 3 +++ locale/en/messages.json | 3 +++ locale/es/messages.json | 3 +++ locale/fr/messages.json | 3 +++ locale/it/messages.json | 3 +++ locale/ja/messages.json | 3 +++ locale/ko/messages.json | 3 +++ locale/nl/messages.json | 3 +++ locale/pt/messages.json | 3 +++ locale/ru/messages.json | 3 +++ locale/sv/messages.json | 3 +++ pages/player/[id].tsx | 22 +++++++++++++++++++--- 13 files changed, 55 insertions(+), 3 deletions(-) diff --git a/locale/de/messages.json b/locale/de/messages.json index dc09414d3..e2331d1ad 100644 --- a/locale/de/messages.json +++ b/locale/de/messages.json @@ -238,6 +238,9 @@ "Links": "Links", "Guides": "Leitfäden", "Misc": "Anderes", + "X Rank Top 500": "", + "League (Twin)": "", + "League (Quad)": "", "Users": "", "All weapons": "", "Edit profile": "Profil bearbeiten", diff --git a/locale/el/messages.json b/locale/el/messages.json index 220f330c3..df33d5f56 100644 --- a/locale/el/messages.json +++ b/locale/el/messages.json @@ -238,6 +238,9 @@ "Links": "Σύνδεσμοι", "Guides": "Οδηγοί", "Misc": "Διάφορα", + "X Rank Top 500": "", + "League (Twin)": "", + "League (Quad)": "", "Users": "", "All weapons": "", "Edit profile": "Τροποποίηση Προφίλ", diff --git a/locale/en/messages.json b/locale/en/messages.json index 50523aeef..07a53a972 100644 --- a/locale/en/messages.json +++ b/locale/en/messages.json @@ -238,6 +238,9 @@ "Links": "Links", "Guides": "Guides", "Misc": "Misc", + "X Rank Top 500": "X Rank Top 500", + "League (Twin)": "League (Twin)", + "League (Quad)": "League (Quad)", "Users": "Users", "All weapons": "All weapons", "Edit profile": "Edit profile", diff --git a/locale/es/messages.json b/locale/es/messages.json index a9168b23f..b101958e8 100644 --- a/locale/es/messages.json +++ b/locale/es/messages.json @@ -238,6 +238,9 @@ "Links": "Links", "Guides": "Guías", "Misc": "Miscelánea", + "X Rank Top 500": "", + "League (Twin)": "", + "League (Quad)": "", "Users": "", "All weapons": "", "Edit profile": "Editar perfil", diff --git a/locale/fr/messages.json b/locale/fr/messages.json index 5f2de2034..91755f090 100644 --- a/locale/fr/messages.json +++ b/locale/fr/messages.json @@ -238,6 +238,9 @@ "Links": "Liens", "Guides": "Guides", "Misc": "Divers", + "X Rank Top 500": "", + "League (Twin)": "", + "League (Quad)": "", "Users": "", "All weapons": "", "Edit profile": "Modifier son profile", diff --git a/locale/it/messages.json b/locale/it/messages.json index 3966a5287..017881bce 100644 --- a/locale/it/messages.json +++ b/locale/it/messages.json @@ -238,6 +238,9 @@ "Links": "Link", "Guides": "Guide", "Misc": "Altro", + "X Rank Top 500": "", + "League (Twin)": "", + "League (Quad)": "", "Users": "", "All weapons": "", "Edit profile": "Modifica Profilo", diff --git a/locale/ja/messages.json b/locale/ja/messages.json index 04c0acc79..dcbef95a1 100644 --- a/locale/ja/messages.json +++ b/locale/ja/messages.json @@ -238,6 +238,9 @@ "Links": "", "Guides": "", "Misc": "", + "X Rank Top 500": "", + "League (Twin)": "", + "League (Quad)": "", "Users": "", "All weapons": "", "Edit profile": "", diff --git a/locale/ko/messages.json b/locale/ko/messages.json index d56dd8490..b3ffe1bd6 100644 --- a/locale/ko/messages.json +++ b/locale/ko/messages.json @@ -238,6 +238,9 @@ "Links": "링크들", "Guides": "가이드들", "Misc": "기타", + "X Rank Top 500": "", + "League (Twin)": "", + "League (Quad)": "", "Users": "", "All weapons": "", "Edit profile": "프로필 편집", diff --git a/locale/nl/messages.json b/locale/nl/messages.json index 04c0acc79..dcbef95a1 100644 --- a/locale/nl/messages.json +++ b/locale/nl/messages.json @@ -238,6 +238,9 @@ "Links": "", "Guides": "", "Misc": "", + "X Rank Top 500": "", + "League (Twin)": "", + "League (Quad)": "", "Users": "", "All weapons": "", "Edit profile": "", diff --git a/locale/pt/messages.json b/locale/pt/messages.json index 15d44af95..743652162 100644 --- a/locale/pt/messages.json +++ b/locale/pt/messages.json @@ -238,6 +238,9 @@ "Links": "Links", "Guides": "Guias", "Misc": "Outros", + "X Rank Top 500": "", + "League (Twin)": "", + "League (Quad)": "", "Users": "", "All weapons": "", "Edit profile": "Editar perfil", diff --git a/locale/ru/messages.json b/locale/ru/messages.json index 04c0acc79..dcbef95a1 100644 --- a/locale/ru/messages.json +++ b/locale/ru/messages.json @@ -238,6 +238,9 @@ "Links": "", "Guides": "", "Misc": "", + "X Rank Top 500": "", + "League (Twin)": "", + "League (Quad)": "", "Users": "", "All weapons": "", "Edit profile": "", diff --git a/locale/sv/messages.json b/locale/sv/messages.json index 2b0d3fde8..b508e2497 100644 --- a/locale/sv/messages.json +++ b/locale/sv/messages.json @@ -238,6 +238,9 @@ "Links": "Länkar", "Guides": "Guider", "Misc": "Övrigt", + "X Rank Top 500": "", + "League (Twin)": "", + "League (Quad)": "", "Users": "", "All weapons": "", "Edit profile": "Redigera profil", diff --git a/pages/player/[id].tsx b/pages/player/[id].tsx index 2ec9fd404..fdff69dbd 100644 --- a/pages/player/[id].tsx +++ b/pages/player/[id].tsx @@ -1,4 +1,5 @@ -import { t } from "@lingui/macro"; +import { HStack, Radio, RadioGroup } from "@chakra-ui/react"; +import { t, Trans } from "@lingui/macro"; import Breadcrumbs from "components/common/Breadcrumbs"; import QuadTable from "components/player/QuadTable"; import TwinTable from "components/player/TwinTable"; @@ -20,8 +21,6 @@ const PlayerPage = (props: Props) => { const [tab, setTab] = useState<"XRANK" | "TWIN" | "QUAD">("QUAD"); - console.log({ player }); - return ( <> { ]} /> + setTab(value as "XRANK" | "TWIN" | "QUAD")} + value={tab} + > + + + X Rank Top 500 + + + League (Twin) + + + League (Quad) + + + + {tab === "XRANK" && } {tab === "TWIN" && } {tab === "QUAD" && }