File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ type ModalName =
7676 | 'share'
7777 | 'searchDependencies'
7878 | 'signInForTemplates' ;
79+
7980export const modalOpened : Action < { modal : ModalName ; message ?: string } > = (
8081 { state, effects } ,
8182 { modal, message }
@@ -85,7 +86,7 @@ export const modalOpened: Action<{ modal: ModalName; message?: string }> = (
8586 state . currentModal = modal ;
8687} ;
8788
88- export const modalClosed : Action < any > = ( { state, effects } ) => {
89+ export const modalClosed : Action = ( { state, effects } ) => {
8990 // We just start it whenever it closes, if already started nothing happens
9091 if ( state . currentModal === 'preferences' ) {
9192 effects . keybindingManager . start ( ) ;
Original file line number Diff line number Diff line change @@ -195,11 +195,11 @@ const Modals: React.FC = () => {
195195 < Modal
196196 isOpen = { Boolean ( modal ) }
197197 width = { modal && modal . width }
198- onClose = { isKeyDown => actions . modalClosed ( { isKeyDown } ) }
198+ onClose = { isKeyDown => actions . modalClosed ( ) }
199199 >
200200 { modal
201201 ? React . createElement ( modal . Component , {
202- closeModal : ( ) => actions . modalClosed ( { isKeyDown : false } ) ,
202+ closeModal : ( ) => actions . modalClosed ( ) ,
203203 } )
204204 : null }
205205 </ Modal >
You can’t perform that action at this time.
0 commit comments