Skip to content

Commit e5b7489

Browse files
MichaelDeBoeySaraVieira
authored andcommitted
🔨 Switch ViewLogsButton to use useOvermind (codesandbox#2557)
1 parent f0a5153 commit e5b7489

File tree

1 file changed

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

1 file changed

+10
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
import React from 'react';
1+
import React, { FunctionComponent } from 'react';
22

3-
import { inject, hooksObserver } from 'app/componentConnectors';
3+
import { useOvermind } from 'app/overmind';
44

55
import { Button } from './elements';
66

7-
export const ViewLogsButton = inject('signals')(
8-
hooksObserver(({ signals: { modalOpened } }) => (
7+
export const ViewLogsButton: FunctionComponent = () => {
8+
const {
9+
actions: { modalOpened },
10+
} = useOvermind();
11+
12+
return (
913
<Button onClick={() => modalOpened({ modal: 'netlifyLogs' })} small>
1014
View Logs
1115
</Button>
12-
))
13-
);
16+
);
17+
};

0 commit comments

Comments
 (0)