@@ -4,7 +4,8 @@ import { motion } from 'framer-motion'
44import { useSnackbar } from 'notistack'
55import React , { useContext , useEffect , useReducer } from 'react'
66import { Scrollbars } from 'react-custom-scrollbars'
7- import { useParams , useSearchParams } from 'react-router-dom'
7+ import { useParams } from 'react-router-dom'
8+ import { useIndexer } from '../api/indexer'
89import { useStarknetApi } from '../api/starknet'
910import DeathDialog from '../components/battle/death'
1011import BattleContainer from '../container/BattleContainer'
@@ -15,7 +16,6 @@ import MapContainer from '../container/MapContainer'
1516import { GameContext } from '../contexts/gameContext'
1617import { useReplay } from '../contexts/replayContext'
1718import { fadeVariant } from '../helpers/variants'
18- import { useIndexer } from '../api/indexer'
1919
2020function ArenaPage ( ) {
2121 const gameContext = useContext ( GameContext )
@@ -31,14 +31,6 @@ function ArenaPage() {
3131 const [ update , forceUpdate ] = useReducer ( x => x + 1 , 0 ) ;
3232
3333 const { watchGameId, gameId, newGameSettingsId } = useParams ( )
34- const [ searchParams ] = useSearchParams ( ) ;
35- const referenceId = searchParams . get ( 'ref' ) ;
36-
37- useEffect ( ( ) => {
38- if ( referenceId === 'ggquest' ) {
39- gameContext . utils . setQuestMode ( true )
40- }
41- } , [ referenceId ] )
4234
4335 useEffect ( ( ) => {
4436 if ( ! watchGameId && ! gameId && ! newGameSettingsId ) {
0 commit comments