Logic for bring the words from Firebase done

This commit is contained in:
2021-10-14 22:12:30 -03:00
parent a7330c6804
commit d9f4948e53
9 changed files with 140 additions and 21 deletions

View File

@@ -10,7 +10,9 @@ import AlmacenateCurrentScore from "./components/Scripts/AlmacenateCurrentScore"
function App() {
const [language, setLanguage] = useState('english')
const [language, setLanguage] = useState('spanish')
const [category, setCategory] = useState(false)
const [currentScore, setCurrentScore] = useState(0)
const [hangmanFrame, setHangmanFrame] = useState(0)
@@ -36,7 +38,7 @@ function App() {
setTimeout(() => {
AlmacenateCurrentScore(currentScore)
window.location.reload(true);
window.location.reload(false);
}, 3000)
}
@@ -61,6 +63,10 @@ function App() {
<PuzzleWord
language={language}
category={category}
hangmanFrame={hangmanFrame}
setHangmanFrame={setHangmanFrame}
@@ -73,6 +79,7 @@ function App() {
isDefeat={isDefeat}
setIsDefeat={setIsDefeat}
displayApp={displayApp}
setDisplayApp={setDisplayApp}
/>