From 86a5d4da74583b06a3f30074de7c11c0b24a5f47 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 21 Feb 2024 14:45:22 +0100 Subject: [PATCH] updating test page to use backend post --- src/pages/Test.jsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/pages/Test.jsx b/src/pages/Test.jsx index 62757f2..62de5cc 100644 --- a/src/pages/Test.jsx +++ b/src/pages/Test.jsx @@ -1,13 +1,12 @@ import Menu from "../components/ui/Menu"; -import { postGameStatisticsData } from "../services/WordpressFetchData"; +import { postGameStatisticsData, postGameStatisticsDataBackend } from "../services/WordpressFetchData"; import { useLanguage } from "../hooks/useLanguage"; import { useEffect } from "react"; - export default function Test() { const { language } = useLanguage(); - function addPost() { - postGameStatisticsData(language); + function postStatistics() { + postGameStatisticsDataBackend(); } return ( @@ -16,8 +15,8 @@ export default function Test() {
- - + + {/* */}