From ea2c2cb92d0a71e4ef032be131b97f95a5c2bc02 Mon Sep 17 00:00:00 2001 From: iyanfdezz Date: Thu, 11 Apr 2024 19:01:26 +0200 Subject: [PATCH 01/20] =?UTF-8?q?A=C3=B1adido=20enlace=20a=20Ver=20estad?= =?UTF-8?q?=C3=ADsticas=20en=20miembros=20del=20grupo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/src/locales/en.json | 1 + webapp/src/locales/es.json | 1 + webapp/src/pages/Social/GroupDetails.js | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/webapp/src/locales/en.json b/webapp/src/locales/en.json index 5b23eddc..16165210 100644 --- a/webapp/src/locales/en.json +++ b/webapp/src/locales/en.json @@ -211,6 +211,7 @@ "avatar": "Avatar", "name": "Name", "viewProfile": "View profile", + "viewStats": "View stats", "loadingText": "Your search is being processed, please wait a moment.", "noParticipants": "There are no participants in this group." }, diff --git a/webapp/src/locales/es.json b/webapp/src/locales/es.json index 9b050c38..9ea1cff8 100644 --- a/webapp/src/locales/es.json +++ b/webapp/src/locales/es.json @@ -211,6 +211,7 @@ "avatar":"Avatar", "name":"Nombre", "viewProfile": "Ver perfil", + "viewStats": "Ver stats", "loadingText": "Se está consultando su búsqueda, espere unos instantes.", "noParticipants": "No hay participantes en este grupo." }, diff --git a/webapp/src/pages/Social/GroupDetails.js b/webapp/src/pages/Social/GroupDetails.js index d3c3b3be..86a4232c 100644 --- a/webapp/src/pages/Social/GroupDetails.js +++ b/webapp/src/pages/Social/GroupDetails.js @@ -30,6 +30,10 @@ const GroupDetails = () => { navigate(`/perfil?user=${username}`); }; + const redirectToStats = (username) => { + navigate(`/stats?user=${username}&gamemode=clasico`); + }; + return ( <>