@@ -22,7 +22,9 @@ import {
2222 closeCostumeLibrary ,
2323 closeBackdropLibrary ,
2424 closeTelemetryModal ,
25- openExtensionLibrary
25+ openExtensionLibrary ,
26+ openGitHubOAuthModal ,
27+ closeGitHubOAuthModal
2628} from '../reducers/modals' ;
2729
2830import FontLoaderHOC from '../lib/font-loader-hoc.jsx' ;
@@ -101,6 +103,9 @@ class GUI extends React.Component {
101103 return (
102104 < GUIComponent
103105 loading = { fetchingProject || isLoading || loadingStateVisible }
106+ githubOAuthModalVisible = { githubOAuthModalVisible }
107+ onOpenGitHubOAuthModal = { onOpenGitHubOAuthModal }
108+ onRequestCloseGitHubOAuthModal = { onRequestCloseGitHubOAuthModal }
104109 { ...componentProps }
105110 >
106111 { children }
@@ -132,6 +137,9 @@ GUI.propTypes = {
132137 projectHost : PropTypes . string ,
133138 projectId : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ] ) ,
134139 telemetryModalVisible : PropTypes . bool ,
140+ githubOAuthModalVisible : PropTypes . bool ,
141+ onOpenGitHubOAuthModal : PropTypes . func ,
142+ onRequestCloseGitHubOAuthModal : PropTypes . func ,
135143 vm : PropTypes . instanceOf ( VM ) . isRequired
136144} ;
137145
@@ -177,6 +185,7 @@ const mapStateToProps = state => {
177185 fontsModalVisible : state . scratchGui . modals . fontsModal ,
178186 unknownPlatformModalVisible : state . scratchGui . modals . unknownPlatformModal ,
179187 invalidProjectModalVisible : state . scratchGui . modals . invalidProjectModal ,
188+ githubOAuthModalVisible : state . scratchGui . modals . githubOAuthModal ,
180189 vm : state . scratchGui . vm
181190 } ;
182191} ;
@@ -188,7 +197,9 @@ const mapDispatchToProps = dispatch => ({
188197 onActivateSoundsTab : ( ) => dispatch ( activateTab ( SOUNDS_TAB_INDEX ) ) ,
189198 onRequestCloseBackdropLibrary : ( ) => dispatch ( closeBackdropLibrary ( ) ) ,
190199 onRequestCloseCostumeLibrary : ( ) => dispatch ( closeCostumeLibrary ( ) ) ,
191- onRequestCloseTelemetryModal : ( ) => dispatch ( closeTelemetryModal ( ) )
200+ onRequestCloseTelemetryModal : ( ) => dispatch ( closeTelemetryModal ( ) ) ,
201+ onRequestOpenGitHubOAuthModal : ( ) => dispatch ( openGitHubOAuthModal ( ) ) ,
202+ onRequestCloseGitHubOAuthModal : ( ) => dispatch ( closeGitHubOAuthModal ( ) )
192203} ) ;
193204
194205const ConnectedGUI = injectIntl ( connect (
0 commit comments