-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
blackymax/update audio calling game #47
Conversation
if (audioCallingData.isEnd) { | ||
return <FinishWindow />; | ||
} | ||
if (audioCallingData.isStart && !audioCallingData.isEnd) { | ||
if (!isCountdown && audioCallingData.isStart && !audioCallingData.isEnd) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лишняя проверка: Если бы был isCountdown === true, мы бы уже вышли в первом return
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
changeCountDown, | ||
fetchExtraWords, | ||
fetchGameWords, | ||
} from '../../../store/actions/gamesActions'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Порядок импортов: компоненты перед действиями
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
const toggleResetEndGame = () => dispatch(resetEndGame()); | ||
const startGame = (isStart: boolean) => dispatch(clickStartGame(isStart)); | ||
const reset = () => dispatch(resetWordsToStartNewGame()); | ||
const sendWords = (array: Array<{ word: IWord; correct: boolean }>) => | ||
dispatch(addWordsToUserDictionary(array, userDictionary, userData)); | ||
|
||
const unmountSound = () => { | ||
const audioPromise = audio.play(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вот тут будет звучание напоследок. нельзя никак от него избавиться?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
import { Button } from '@material-ui/core'; | ||
import GameAnswer from './GameAnswer'; | ||
import GameExitBtn from '../../commonComponents/GameExitBtn/GameExitBtn'; | ||
import GameQuestion from './GameQuestion'; | ||
import GameTracker from '../../commonComponents/GameTracker/GameTracker'; | ||
import VolumeRange from '../../commonComponents/VolumeRange/VolumeRange'; | ||
import backendURL, { correctUrl, skipUrl, incorrectUrl, MAX_VOLUME } from '../../../constants'; | ||
import backendURL, { correctUrl, incorrectUrl, MAX_VOLUME, skipUrl } from '../../../constants'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Константы к константам, после экшнов
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -20,6 +20,9 @@ const useStyles = makeStyles(() => | |||
width: '50%', | |||
fontSize: '24px', | |||
marginLeft: '10px', | |||
root: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а так будет работать? у тебя сейчас root вложен в input...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unusable class, deleted
0a586d5
to
79f6736
Compare
No description provided.