File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
packages/app/src/app/pages/common/Modals/SignInForTemplates Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 1- import React from 'react' ;
2- import { inject , hooksObserver } from 'app/componentConnectors' ;
1+ import React , { FunctionComponent } from 'react' ;
2+
3+ import { useOvermind } from 'app/overmind' ;
34
45import { SignInButton } from '../../SignInButton' ;
56import { Heading , Explanation } from '../elements' ;
67import { Container } from '../LiveSessionEnded/elements' ;
8+
79import { Close , Buttons } from './elements' ;
810
9- export const SignInForTemplates = inject ( 'signals' ) (
10- hooksObserver ( ( { signals : { modalClosed } } ) => (
11+ export const SignInForTemplates : FunctionComponent = ( ) => {
12+ const {
13+ actions : { modalClosed } ,
14+ } = useOvermind ( ) ;
15+
16+ return (
1117 < Container >
1218 < Close onClick = { ( ) => modalClosed ( ) } />
1319
@@ -21,5 +27,5 @@ export const SignInForTemplates = inject('signals')(
2127 < SignInButton />
2228 </ Buttons >
2329 </ Container >
24- ) )
25- ) ;
30+ ) ;
31+ } ;
You can’t perform that action at this time.
0 commit comments