Skip to content

Commit

Permalink
Merge pull request #69 from Arquisoft/UO287747-Develop
Browse files Browse the repository at this point in the history
Actualización interfaz y preguntas
  • Loading branch information
UO287687 authored Mar 3, 2024
2 parents c590478 + 15562bc commit 593f92c
Show file tree
Hide file tree
Showing 17 changed files with 558 additions and 157 deletions.
160 changes: 93 additions & 67 deletions webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.15.3",
"@mui/icons-material": "^5.15.3",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.5.2",
Expand Down
6 changes: 5 additions & 1 deletion webapp/src/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { useState } from 'react'

import Nav from './components/Nav'
import { Start } from './components/Start'
import { Game } from './components/Game'
import { PostGame } from './components/PostGame'
import { Participation } from './components/Participation'
import User from './components/User'

Expand All @@ -15,9 +17,11 @@ function App() {
return (
<>
{menuState === 0 && <User goTo={(x) => goTo(x)}/>}
{menuState > 0 && <Nav goTo={(x) => goTo(x)}/>}
{menuState === 1 && <Start goTo={(x) => goTo(x)}/>}
{menuState === 2 && <Game goTo={(x) => goTo(x)}/>}
{menuState === 3 && <Participation goTo={(x) => goTo(x)}/>}
{menuState === 3 && <PostGame />}
{menuState === 4 && <Participation goTo={(x) => goTo(x)}/>}
</>
)
}
Expand Down
Loading

0 comments on commit 593f92c

Please sign in to comment.