Skip to content

Commit

Permalink
First part of adding the button to see the historic questions
Browse files Browse the repository at this point in the history
  • Loading branch information
alegarman2002 committed Mar 13, 2024
1 parent c2bf00b commit 52663cb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions webapp/src/components/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ const Menu = () => {
console.log(questions)
};

const openStoredQuestions = async () => {
navigation("/firstGame")
}

return (
<Container component="main" maxWidth="xl" sx={{ marginTop: 4 }}>
<p>Bienvenido a wiq_06c por favor seleccione un modo de juego para comenzar partida:</p>
Expand All @@ -97,6 +101,14 @@ const Menu = () => {
>
Clasico
</button>
<button
name="quiz"
onClick={() => openStoredQuestions()}
style={{backgroundColor: 'lightgrey'}}
>
Clasico
</button>

</Container>
);

Expand Down
3 changes: 2 additions & 1 deletion webapp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 52663cb

Please sign in to comment.