File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
packages/app/src/app/pages/Sandbox/Editor/Workspace/items/Deployment/Netlify/SiteInfo/Actions Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 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
45import { ButtonContainer } from '../../../elements' ;
56
@@ -8,8 +9,14 @@ import { SubTitle } from '../elements';
89import { ClaimSiteButton } from './ClaimSiteButton' ;
910import { 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+ } ;
You can’t perform that action at this time.
0 commit comments