Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blackymax/update audio calling game #47

Merged
merged 8 commits into from
Apr 14, 2021

Conversation

blackymax
Copy link
Collaborator

No description provided.

if (audioCallingData.isEnd) {
return <FinishWindow />;
}
if (audioCallingData.isStart && !audioCallingData.isEnd) {
if (!isCountdown && audioCallingData.isStart && !audioCallingData.isEnd) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лишняя проверка: Если бы был isCountdown === true, мы бы уже вышли в первом return

Copy link
Collaborator Author

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';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Порядок импортов: компоненты перед действиями

Copy link
Collaborator Author

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();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вот тут будет звучание напоследок. нельзя никак от него избавиться?

Copy link
Collaborator Author

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';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Константы к константам, после экшнов

Copy link
Collaborator Author

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: {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а так будет работать? у тебя сейчас root вложен в input...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unusable class, deleted

@lbratkovskaya lbratkovskaya force-pushed the blackymax/update_audio_calling_game branch from 0a586d5 to 79f6736 Compare April 14, 2021 19:09
@lbratkovskaya lbratkovskaya merged commit d0362cc into develop Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants