File tree Expand file tree Collapse file tree 3 files changed +10
-18
lines changed
game-word-shuffle/components/game Expand file tree Collapse file tree 3 files changed +10
-18
lines changed Original file line number Diff line number Diff line change 1
1
import { Dialog , DialogContent , DialogTitle } from '@mui/material' ;
2
2
import ButtonGreen from '../ButtonGreen' ;
3
3
import Transition from '../Transition' ;
4
- import {
5
- PlayArrow ,
6
- Speaker ,
7
- VolumeDown ,
8
- VolumeOff ,
9
- VolumeUp ,
10
- } from '@mui/icons-material' ;
4
+ import { VolumeOff , VolumeUp } from '@mui/icons-material' ;
11
5
import { useContext , useState } from 'react' ;
12
6
import { GameContext } from './GameContext' ;
13
7
import { inputSoundUrl , playSound } from '../../utils' ;
14
8
15
9
const Menu = ( ) => {
16
10
const [ menuOpen , setMenuOpen ] = useState ( false ) ;
17
- const { soundEnabled, setSoundEnabled } = useContext ( GameContext ) ;
11
+ const { soundEnabled } = useContext ( GameContext ) ;
18
12
19
13
const handleClose = ( ) => {
20
14
setMenuOpen ( false ) ;
Original file line number Diff line number Diff line change 1
1
import {
2
- ReactElement ,
3
- Ref ,
4
2
forwardRef ,
5
3
useContext ,
6
4
useEffect ,
Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ function Copyright() {
35
35
const defaultTheme = createTheme ( ) ;
36
36
37
37
function HomePage ( ) {
38
- const handleSubmit = ( event : React . FormEvent < HTMLFormElement > ) => {
39
- event . preventDefault ( ) ;
40
- const data = new FormData ( event . currentTarget ) ;
41
- console . log ( {
42
- email : data . get ( 'email' ) ,
43
- password : data . get ( 'password' ) ,
44
- } ) ;
45
- } ;
38
+ // const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {
39
+ // event.preventDefault();
40
+ // const data = new FormData(event.currentTarget);
41
+ // console.log({
42
+ // email: data.get('email'),
43
+ // password: data.get('password'),
44
+ // });
45
+ // };
46
46
47
47
return (
48
48
< ThemeProvider theme = { defaultTheme } >
You can’t perform that action at this time.
0 commit comments