Skip to content

Commit

Permalink
feat: add restart
Browse files Browse the repository at this point in the history
  • Loading branch information
KarpusKonstantin committed Apr 3, 2021
1 parent 0cd2705 commit e94e5d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SpeakIt/SpeakitPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const SpeakitPage: React.FC = () => {

const wordsListWithSuccess = WordServices.setFalseToSuccessField(wordsList);

const xRoundWordArray = WordServices.getRoundWordsArray(wordsListWithSuccess, 2);
const xRoundWordArray = WordServices.getRoundWordsArray(wordsListWithSuccess, 10);

changeGameState({type: 'NEWROUND', payload: {...gameState, roundWordArray: xRoundWordArray }})
};
Expand Down Expand Up @@ -279,7 +279,7 @@ const SpeakitPage: React.FC = () => {
}
</div>
<div className="btns d-flex flex-column flex-md-row mt-4">
<a href="#" className="btn btn-lg btn-info btns__restart mb-2 mb-md-0 mx-0 mx-md-2">Restart</a>
<a href="#" className="btn btn-lg btn-info btns__restart mb-2 mb-md-0 mx-0 mx-md-2" onClick={() => {setRestart(true)}}>Restart</a>
<a href="#" className="btn btn-lg btn-info btns__speak mb-2 mb-md-0 mx-0 mx-md-2"
onClick={() => changeGameState({type: 'MICROPHONE', payload: {...gameState, microphoneOn: !gameState.microphoneOn}})}>Press and speak</a>
<a href="#" className="btn btn-lg btn-info btns__result mb-2 mb-md-0 mx-0 mx-md-2"
Expand Down

0 comments on commit e94e5d2

Please sign in to comment.