From 52663cb3bc225b7eae7f411a6bc068a05982f079 Mon Sep 17 00:00:00 2001 From: alegarman2002 <116609314+alegarman2002@users.noreply.github.com> Date: Wed, 13 Mar 2024 22:30:45 +0100 Subject: [PATCH] First part of adding the button to see the historic questions --- webapp/src/components/Menu.js | 12 ++++++++++++ webapp/src/index.js | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/webapp/src/components/Menu.js b/webapp/src/components/Menu.js index 990e84de..da48b6a0 100644 --- a/webapp/src/components/Menu.js +++ b/webapp/src/components/Menu.js @@ -87,6 +87,10 @@ const Menu = () => { console.log(questions) }; + const openStoredQuestions = async () => { + navigation("/firstGame") + } + return (

Bienvenido a wiq_06c por favor seleccione un modo de juego para comenzar partida:

@@ -97,6 +101,14 @@ const Menu = () => { > Clasico + +
); diff --git a/webapp/src/index.js b/webapp/src/index.js index bf6814c8..18cbf3e7 100644 --- a/webapp/src/index.js +++ b/webapp/src/index.js @@ -16,7 +16,8 @@ import { import FirstGame from './components/FirstGame'; import Menu from './components/Menu'; -import Login from './components/Login' +import Login from './components/Login'; +import AppQuestion from './storeQuestion/App' const root = ReactDOM.createRoot(document.getElementById('root'));