File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
packages/app/src/app/pages/common/Modals/SearchDependenciesModal Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { inject , hooksObserver } from 'app/componentConnectors ' ;
2+ import { useOvermind } from 'app/overmind ' ;
33import SearchDependencies from 'app/pages/Sandbox/SearchDependencies' ;
44
5- function SearchDependenciesModal ( { signals } ) {
5+ function SearchDependenciesModal ( ) {
6+ const {
7+ actions : {
8+ editor : { addNpmDependency } ,
9+ } ,
10+ } = useOvermind ( ) ;
611 return (
712 < SearchDependencies
8- onConfirm = { ( name , version ) =>
9- signals . editor . addNpmDependency ( { name, version } )
10- }
13+ onConfirm = { ( name , version ) => addNpmDependency ( { name, version } ) }
1114 />
1215 ) ;
1316}
1417
15- export default inject ( 'signals' ) ( hooksObserver ( SearchDependenciesModal ) ) ;
18+ export default SearchDependenciesModal ;
You can’t perform that action at this time.
0 commit comments