From 6ba9e2c75c9e53c92708b690194f800cf45ad271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Famibelle-Pronzola?= Date: Sun, 5 Mar 2023 13:41:03 +0400 Subject: [PATCH] Remove stats from index --- pages/index.js | 56 -------------------------------------------------- 1 file changed, 56 deletions(-) diff --git a/pages/index.js b/pages/index.js index ad7e4da..7aa499f 100644 --- a/pages/index.js +++ b/pages/index.js @@ -12,7 +12,6 @@ import HeadLayout from '../components/head-layout' import Footer from '../components/footer' import {jwennStats} from '../lib/oki-api' -import KatStats from '../components/stats/kat-stats' import KatKayLa from '../components/kat-kay-la' import Custom500 from './500' @@ -25,36 +24,6 @@ export default function Home({errorCode, errorMessage, stats}) { return } - const {parolesWithoutTranslation} = stats - - const statsByLang = [ - { - code: 'fr', - value: parolesWithoutTranslation.francais, - emoji: '🇫🇷' - }, - { - code: 'en', - value: parolesWithoutTranslation.anglais, - emoji: '🇬🇧' - }, - { - code: 'es', - value: parolesWithoutTranslation.espagnol, - emoji: '🇪🇸' - }, - { - code: 'de', - value: parolesWithoutTranslation.allemand, - emoji: '🇩🇪' - }, - { - code: 'it', - value: parolesWithoutTranslation.italien, - emoji: '🇮🇹' - } - ] - return ( @@ -70,37 +39,12 @@ export default function Home({errorCode, errorMessage, stats}) { Paroles, traductions et Fédiverse - - - - - - - - - - - - - - - Traductions - - - {statsByLang.map(({code, value, emoji}) => ( - - ))} -