Skip to content

Commit 1fb4fc2

Browse files
MichaelDeBoeySaraVieira
authored andcommitted
🔨 Switch SignInForTemplates to use useOvermind (codesandbox#2527)
1 parent a9892c8 commit 1fb4fc2

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed
Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
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

45
import { SignInButton } from '../../SignInButton';
56
import { Heading, Explanation } from '../elements';
67
import { Container } from '../LiveSessionEnded/elements';
8+
79
import { 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+
};

0 commit comments

Comments
 (0)