@@ -8,7 +8,6 @@ import createContext from 'js-slang/dist/createContext';
88import { Chapter , Variant } from 'js-slang/dist/types' ;
99import { stringify } from 'js-slang/dist/utils/stringify' ;
1010import React , { useCallback } from 'react' ;
11- import { HotKeys } from 'react-hotkeys' ;
1211import mockModuleContext from '../mockModuleContext' ;
1312import type { InterpreterOutput } from '../types' ;
1413import Workspace , { type WorkspaceProps } from './Workspace' ;
@@ -39,7 +38,7 @@ const createContextHelper = () => {
3938 return tempContext ;
4039} ;
4140
42- const Playground : React . FC < { } > = ( ) => {
41+ const Playground : React . FC = ( ) => {
4342 const [ dynamicTabs , setDynamicTabs ] = React . useState < SideContentTab [ ] > ( [ ] ) ;
4443 const [ selectedTabId , setSelectedTab ] = React . useState ( testTabContent . id ) ;
4544 const [ codeContext , setCodeContext ] = React . useState < Context > ( createContextHelper ( ) ) ;
@@ -111,7 +110,6 @@ const Playground: React.FC<{}> = () => {
111110
112111 const evalCode = ( ) => {
113112 codeContext . errors = [ ] ;
114- // eslint-disable-next-line no-multi-assign
115113 codeContext . moduleContexts = mockModuleContext . moduleContexts = { } ;
116114
117115 runInContext ( editorValue , codeContext )
@@ -191,12 +189,10 @@ const Playground: React.FC<{}> = () => {
191189 } ;
192190
193191 return (
194- < HotKeys
195- className = { classNames ( 'Playground' , Classes . DARK ) }
196- >
192+ < div className = { classNames ( 'Playground' , Classes . DARK ) } >
197193 < OverlayToaster ref = { toaster } />
198194 < Workspace { ...workspaceProps } />
199- </ HotKeys >
195+ </ div >
200196 ) ;
201197} ;
202198
0 commit comments