Skip to content

Commit 6c2d5c3

Browse files
committed
fix linting errors
1 parent a2435c8 commit 6c2d5c3

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

src/game-word-shuffle/components/game/Menu.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
import { Dialog, DialogContent, DialogTitle } from '@mui/material';
22
import ButtonGreen from '../ButtonGreen';
33
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';
115
import { useContext, useState } from 'react';
126
import { GameContext } from './GameContext';
137
import { inputSoundUrl, playSound } from '../../utils';
148

159
const Menu = () => {
1610
const [menuOpen, setMenuOpen] = useState(false);
17-
const { soundEnabled, setSoundEnabled } = useContext(GameContext);
11+
const { soundEnabled } = useContext(GameContext);
1812

1913
const handleClose = () => {
2014
setMenuOpen(false);

src/game-word-shuffle/components/game/Timer.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import {
2-
ReactElement,
3-
Ref,
42
forwardRef,
53
useContext,
64
useEffect,

src/pages/HomePage/HomePage.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ function Copyright() {
3535
const defaultTheme = createTheme();
3636

3737
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+
// };
4646

4747
return (
4848
<ThemeProvider theme={defaultTheme}>

0 commit comments

Comments
 (0)