Skip to content

Commit

Permalink
add button for stored questions
Browse files Browse the repository at this point in the history
  • Loading branch information
uo288574 committed Mar 13, 2024
1 parent 52663cb commit bfddeec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/src/components/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const Menu = () => {
};

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

return (
Expand All @@ -102,11 +102,11 @@ const Menu = () => {
Clasico
</button>
<button
name="quiz"
name="openStoredQuestions"
onClick={() => openStoredQuestions()}
style={{backgroundColor: 'lightgrey'}}
>
Clasico
Preguntas guardadas
</button>

</Container>
Expand Down
1 change: 1 addition & 0 deletions webapp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ root.render(
<Routes>
<Route path="/" element={<App/>}></Route>
<Route path="/firstGame" element={<FirstGame/>}></Route>
<Route path="/appQuestion" element={<AppQuestion/>}></Route>
<Route path="/menu" element={<Menu/>}></Route>
<Route path="/login" element={<Login/>}></Route>
</Routes>
Expand Down

0 comments on commit bfddeec

Please sign in to comment.