introducing results page
This commit is contained in:
parent
cb6ffff3a0
commit
38583b9f7b
23
src/pages/Results.jsx
Normal file
23
src/pages/Results.jsx
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
import React from "react";
|
||||||
|
import Menu from "../components/Menu";
|
||||||
|
import { postWordpressStatisticsData } from "../hooks/WordpressFetchData";
|
||||||
|
import { useLanguage } from "../hooks/useLanguage";
|
||||||
|
|
||||||
|
export default function Results() {
|
||||||
|
const { language } = useLanguage();
|
||||||
|
|
||||||
|
function addPost(language) {
|
||||||
|
postWordpressStatisticsData("/statistics/post", "BE");
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className='page-container page-container--test'>
|
||||||
|
<div className='screen screen--test'>
|
||||||
|
<Menu />
|
||||||
|
<div id='screen-container'>
|
||||||
|
<button onClick={() => addPost(language)}>Finish the game</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user