@@ -6,7 +6,6 @@ import { connect } from 'react-redux';
66import { HandlerProps } from 'react-reflex' ;
77import { useMediaQuery } from 'react-responsive' ;
88import { bindActionCreators , Dispatch } from 'redux' ;
9- import { createStructuredSelector } from 'reselect' ;
109import store from 'store' ;
1110import { editor } from 'monaco-editor' ;
1211import type { FitAddon } from 'xterm-addon-fit' ;
@@ -22,6 +21,7 @@ import {
2221 ChallengeNode ,
2322 CompletedChallenge ,
2423 ResizeProps ,
24+ SavedChallenge ,
2525 SavedChallengeFiles ,
2626 Test
2727} from '../../../redux/prop-types' ;
@@ -72,11 +72,11 @@ import { mergeChallengeFiles } from './saved-challenges';
7272import './classic.css' ;
7373import '../components/test-frame.css' ;
7474
75- const mapStateToProps = createStructuredSelector ( {
76- challengeFiles : challengeFilesSelector ,
77- output : consoleOutputSelector ,
78- isChallengeCompleted : isChallengeCompletedSelector ,
79- savedChallenges : savedChallengesSelector
75+ const mapStateToProps = ( state : unknown ) => ( {
76+ challengeFiles : challengeFilesSelector ( state ) as ChallengeFiles ,
77+ output : consoleOutputSelector ( state ) as string [ ] ,
78+ isChallengeCompleted : isChallengeCompletedSelector ( state ) as boolean ,
79+ savedChallenges : savedChallengesSelector ( state ) as SavedChallenge [ ]
8080} ) ;
8181
8282const mapDispatchToProps = ( dispatch : Dispatch ) =>
@@ -120,7 +120,7 @@ interface ShowClassicProps extends Pick<PreviewProps, 'previewMounted'> {
120120 openModal : ( modal : string ) => void ;
121121 setEditorFocusability : ( canFocus : boolean ) => void ;
122122 setIsAdvancing : ( arg : boolean ) => void ;
123- savedChallenges : CompletedChallenge [ ] ;
123+ savedChallenges : SavedChallenge [ ] ;
124124}
125125
126126interface ReflexLayout {
0 commit comments