Skip to content

Commit d64c40e

Browse files
MichaelDeBoeySaraVieira
authored andcommitted
🔨 Switch Actions to use useOvermind (codesandbox#2576)
1 parent 78bdc0d commit d64c40e

File tree

1 file changed

+13
-6
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Workspace/items/Deployment/Netlify/SiteInfo/Actions

1 file changed

+13
-6
lines changed
Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { inject, hooksObserver } from 'app/componentConnectors';
2-
import React from 'react';
1+
import React, { FunctionComponent } from 'react';
2+
3+
import { useOvermind } from 'app/overmind';
34

45
import { ButtonContainer } from '../../../elements';
56

@@ -8,8 +9,14 @@ import { SubTitle } from '../elements';
89
import { ClaimSiteButton } from './ClaimSiteButton';
910
import { VisitSiteButton } from './VisitSiteButton';
1011

11-
export const Actions = inject('store')(
12-
hooksObserver(({ store: { deployment: { netlifyClaimUrl } } }) => (
12+
export const Actions: FunctionComponent = () => {
13+
const {
14+
state: {
15+
deployment: { netlifyClaimUrl },
16+
},
17+
} = useOvermind();
18+
19+
return (
1320
<>
1421
<SubTitle>Actions</SubTitle>
1522

@@ -19,5 +26,5 @@ export const Actions = inject('store')(
1926
{netlifyClaimUrl ? <ClaimSiteButton /> : null}
2027
</ButtonContainer>
2128
</>
22-
))
23-
);
29+
);
30+
};

0 commit comments

Comments
 (0)