Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ZaneH committed Oct 9, 2022
1 parent c737131 commit 321966b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/Quiz/Quiz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
useRef,
useState,
} from 'react'
import { useTranslation } from 'react-i18next'
import { MidiNumbers, Piano } from 'react-piano'
import styled from 'styled-components'
import {
Expand All @@ -23,17 +24,15 @@ import {
swapNoteWithSynonym,
} from '../../utils'
import { KVContext } from '../KVProvider'
import SoundfontProvider from '../SoundfontProvider'
import { TrainerContext } from '../TrainerProvider'
import {
formatQuestion,
getRandomQuizQuestion,
MajorMinorType,
QuestionTypeType,
} from './Questions'
import { QuizOption } from './QuizOption'
import QuizHeader from './QuizHeader'
import { useTranslation } from 'react-i18next'
import { QuizOption } from './QuizOption'

const QuizPage = styled.div`
height: 100%;
Expand Down Expand Up @@ -61,8 +60,7 @@ const KeyboardContainer = styled.div`
`

const Quiz = () => {
const { showKeyboard, muteSound, midiDevice, setMidiDevice, pianoSound } =
useContext(KVContext)
const { showKeyboard, midiDevice, setMidiDevice } = useContext(KVContext)
const { chordStack, setChordStack } = useContext(TrainerContext)
const unlistenRef = useRef<UnlistenFn>()
const [activeNotes, setActiveNotes] = useState<{ [note: string]: boolean }>(
Expand Down

0 comments on commit 321966b

Please sign in to comment.