File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
packages/app/src/app/pages/common/Modals Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- import React from 'react' ;
1
+ import React , { FunctionComponent } from 'react' ;
2
+
2
3
import { useOvermind } from 'app/overmind' ;
3
4
import SearchDependencies from 'app/pages/Sandbox/SearchDependencies' ;
4
5
5
- function SearchDependenciesModal ( ) {
6
+ export const SearchDependenciesModal : FunctionComponent = ( ) => {
6
7
const {
7
8
actions : {
8
9
editor : { addNpmDependency } ,
9
10
} ,
10
11
} = useOvermind ( ) ;
12
+
11
13
return (
12
14
< SearchDependencies
13
15
onConfirm = { ( name , version ) => addNpmDependency ( { name, version } ) }
14
16
/>
15
17
) ;
16
- }
17
-
18
- export default SearchDependenciesModal ;
18
+ } ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import { NetlifyLogs } from './NetlifyLogs';
27
27
import { PickSandboxModal } from './PickSandboxModal' ;
28
28
import PreferencesModal from './PreferencesModal' ;
29
29
import PRModal from './PRModal' ;
30
- import SearchDependenciesModal from './SearchDependenciesModal' ;
30
+ import { SearchDependenciesModal } from './SearchDependenciesModal' ;
31
31
import { SelectSandboxModal } from './SelectSandboxModal' ;
32
32
import { ShareModal } from './ShareModal' ;
33
33
import SignInForTemplates from './SignInForTemplates' ;
You can’t perform that action at this time.
0 commit comments