Skip to content

Commit 6e7b07d

Browse files
committed
ref: CliInstructions - replace Cerebral with Overmind
1 parent 76aa314 commit 6e7b07d

File tree

1 file changed

+36
-35
lines changed
  • packages/app/src/app/pages/CliInstructions

1 file changed

+36
-35
lines changed
Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,47 @@
11
import React, { useEffect } from 'react';
22
import MaxWidth from '@codesandbox/common/lib/components/flex/MaxWidth';
33
import Margin from '@codesandbox/common/lib/components/spacing/Margin';
4-
import { inject, hooksObserver } from 'app/componentConnectors';
4+
import { useOvermind } from 'app/overmind';
55
import { Title } from 'app/components/Title';
66
import { SubTitle } from 'app/components/SubTitle';
77
import { Navigation } from 'app/pages/common/Navigation';
88
import { Container, Content, Code } from './elements';
99

10-
const CLIInstructions = inject('signals')(
11-
hooksObserver(({ signals: { cliInstructionsMounted } }) => {
12-
useEffect(() => {
13-
cliInstructionsMounted();
14-
}, [cliInstructionsMounted]);
15-
16-
return (
17-
<MaxWidth>
18-
<Margin vertical={1.5} horizontal={1.5}>
19-
<Container>
20-
<Navigation title="CLI Import" />
21-
22-
<Content vertical>
23-
<Title>Import from CLI</Title>
24-
25-
<SubTitle>
26-
1. Install the CLI <Code>npm i -g codesandbox</Code>
27-
</SubTitle>
28-
29-
<SubTitle>
30-
2. Go to your project <Code>cd path-of-your-project</Code>
31-
</SubTitle>
32-
33-
<SubTitle>
34-
3. Deploy your project to CodeSandbox{' '}
35-
<Code>codesandbox ./</Code>
36-
</SubTitle>
37-
</Content>
38-
</Container>
39-
</Margin>
40-
</MaxWidth>
41-
);
42-
})
43-
);
10+
const CLIInstructions: React.FC = () => {
11+
const {
12+
actions: { cliInstructionsMounted },
13+
} = useOvermind();
14+
15+
useEffect(() => {
16+
cliInstructionsMounted();
17+
}, [cliInstructionsMounted]);
18+
19+
return (
20+
<MaxWidth>
21+
<Margin vertical={1.5} horizontal={1.5}>
22+
<Container>
23+
<Navigation title="CLI Import" />
24+
25+
<Content vertical>
26+
<Title>Import from CLI</Title>
27+
28+
<SubTitle>
29+
1. Install the CLI <Code>npm i -g codesandbox</Code>
30+
</SubTitle>
31+
32+
<SubTitle>
33+
2. Go to your project <Code>cd path-of-your-project</Code>
34+
</SubTitle>
35+
36+
<SubTitle>
37+
3. Deploy your project to CodeSandbox <Code>codesandbox ./</Code>
38+
</SubTitle>
39+
</Content>
40+
</Container>
41+
</Margin>
42+
</MaxWidth>
43+
);
44+
};
4445

4546
// eslint-disable-next-line import/no-default-export
4647
export default CLIInstructions;

0 commit comments

Comments
 (0)