Skip to content

Commit

Permalink
Merge pull request #838 from parlemonde/mosaic
Browse files Browse the repository at this point in the history
Push delete bouton mosaic
  • Loading branch information
guillaume-pages authored Jan 9, 2024
2 parents 30f0cf1 + dfcea23 commit 63bd526
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
}
}
14 changes: 7 additions & 7 deletions src/pages/creer-un-jeu/mimique/jouer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useRouter } from 'next/router';
import React, { useState, useCallback, useMemo, useContext, useEffect } from 'react';

import AccessTimeIcon from '@mui/icons-material/AccessTime';
import AppsIcon from '@mui/icons-material/Apps';
// import AppsIcon from '@mui/icons-material/Apps';
import ShuffleIcon from '@mui/icons-material/Shuffle';
import type { SvgIconTypeMap } from '@mui/material';
import { Box, Button, FormControlLabel, Grid, Radio, RadioGroup } from '@mui/material';
Expand Down Expand Up @@ -51,7 +51,7 @@ type AlreadyPlayerModalProps = {
enum RadioBoxValues {
NEW = 'Nouvelle',
RANDOM = 'Aléatoire',
MOSAIC = 'Mosaïque',
// MOSAIC = 'Mosaïque',
}

type RadioNextGameProps = {
Expand All @@ -66,7 +66,7 @@ type RadioNextGameProps = {
const radioListComponentMapper = {
[RadioBoxValues.NEW]: AccessTimeIcon,
[RadioBoxValues.RANDOM]: ShuffleIcon,
[RadioBoxValues.MOSAIC]: AppsIcon,
//[RadioBoxValues.MOSAIC]: AppsIcon,
};

const RadioNextGame: React.FC<RadioNextGameProps> = ({ value, Icon, onChange, checked }) => (
Expand Down Expand Up @@ -164,10 +164,10 @@ const PlayMimic = () => {
[RadioBoxValues.RANDOM]: async () => {
return await getRandomGame(GameType.MIMIC);
},
[RadioBoxValues.MOSAIC]: () => {
console.error('Not implemented yet');
return undefined;
},
// [RadioBoxValues.MOSAIC]: () => {
// console.error('Not implemented yet');
// return undefined;
// },
};

const nextGame = isLastGame ? undefined : await NEXT_GAME_MAPPER[selectedValue]();
Expand Down

0 comments on commit 63bd526

Please sign in to comment.