File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
packages/app/src/app/pages Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 77 protocolAndHost ,
88 gitHubRepoPattern ,
99} from '@codesandbox/common/lib/utils/url-generator' ;
10- import { inject , hooksObserver } from 'app/componentConnectors ' ;
10+ import { useOvermind } from 'app/overmind ' ;
1111import { Title } from 'app/components/Title' ;
1212import { SubTitle } from 'app/components/SubTitle' ;
1313import { Navigation } from 'app/pages/common/Navigation' ;
@@ -23,11 +23,15 @@ import {
2323const getFullGitHubUrl = url =>
2424 `${ protocolAndHost ( ) } ${ gitHubToSandboxUrl ( url ) } ` ;
2525
26- const GitHub = ( { signals : { githubPageMounted } } ) => {
26+ export const GitHub = ( ) => {
2727 const [ error , setError ] = useState ( null ) ;
2828 const [ transformedUrl , setTransformedUrl ] = useState ( '' ) ;
2929 const [ url , setUrl ] = useState ( '' ) ;
3030
31+ const {
32+ actions : { githubPageMounted } ,
33+ } = useOvermind ( ) ;
34+
3135 useEffect ( ( ) => {
3236 githubPageMounted ( ) ;
3337 } , [ githubPageMounted ] ) ;
@@ -109,6 +113,3 @@ const GitHub = ({ signals: { githubPageMounted } }) => {
109113 </ MaxWidth >
110114 ) ;
111115} ;
112-
113- // eslint-disable-next-line import/no-default-export
114- export default inject ( 'signals' ) ( hooksObserver ( GitHub ) ) ;
Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ const Search = Loadable(() =>
4141const CLI = Loadable ( ( ) => import ( /* webpackChunkName: 'page-cli' */ './CLI' ) ) ;
4242
4343const GitHub = Loadable ( ( ) =>
44- import ( /* webpackChunkName: 'page-github' */ './GitHub' )
44+ import ( /* webpackChunkName: 'page-github' */ './GitHub' ) . then ( module => ( {
45+ default : module . GitHub ,
46+ } ) )
4547) ;
4648const CliInstructions = Loadable ( ( ) =>
4749 import (
You can’t perform that action at this time.
0 commit comments