File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed
packages/app/src/app/pages/common/Modals Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 1- import React from 'react' ;
1+ import React , { FunctionComponent } from 'react' ;
22import { useOvermind } from 'app/overmind' ;
3- import Sandbox from './Sandbox' ;
4-
53import { Padding } from './elements' ;
64
7- function SelectSandboxModal ( ) {
5+ import Sandbox from './Sandbox' ;
6+
7+ export const SelectSandboxModal : FunctionComponent = ( ) => {
88 const {
99 state : {
10- profile : { isLoadingSandboxes, showcasedSandbox, userSandboxes } ,
10+ profile : {
11+ isLoadingSandboxes,
12+ showcasedSandbox,
13+ userSandboxes
14+ }
1115 } ,
1216 actions : {
13- profile : { newSandboxShowcaseSelected } ,
14- } ,
17+ profile : { newSandboxShowcaseSelected }
18+ }
1519 } = useOvermind ( ) ;
1620
17- if ( isLoadingSandboxes ) return < Padding > Loading sandboxes...</ Padding > ;
21+ if ( isLoadingSandboxes )
22+ return < Padding > Loading sandboxes...</ Padding > ;
1823
1924 const currentShowcasedSandboxId = showcasedSandbox && showcasedSandbox . id ;
2025
@@ -32,5 +37,4 @@ function SelectSandboxModal() {
3237 ) ) }
3338 </ div >
3439 ) ;
35- }
36- export default SelectSandboxModal ;
40+ } ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import PreferencesModal from './PreferencesModal';
2626import PrivacyServerWarning from './PrivacyServerWarning' ;
2727import PRModal from './PRModal' ;
2828import SearchDependenciesModal from './SearchDependenciesModal' ;
29- import SelectSandboxModal from './SelectSandboxModal' ;
29+ import { SelectSandboxModal } from './SelectSandboxModal' ;
3030import ShareModal from './ShareModal' ;
3131import SignInForTemplates from './SignInForTemplates' ;
3232import { StorageManagementModal } from './StorageManagementModal' ;
You can’t perform that action at this time.
0 commit comments