11import React from 'react' ;
22
3+ import { inject } from 'mobx-react' ;
4+
35import Navigation from 'app/pages/common/Navigation' ;
46import Title from 'app/components/Title' ;
57import SubTitle from 'app/components/SubTitle' ;
@@ -8,29 +10,36 @@ import Margin from 'common/components/spacing/Margin';
810
911import { Container , Content , Code } from './elements' ;
1012
11- function CliInstructions ( ) {
12- return (
13- < MaxWidth >
14- < Margin vertical = { 1.5 } horizontal = { 1.5 } >
15- < Container >
16- < Navigation title = "CLI Import" />
17- < Content vertical >
18- < Title > Import from CLI</ Title >
19- < SubTitle >
20- 1. Install the CLI < Code > npm i -g codesandbox</ Code >
21- </ SubTitle >
22- < SubTitle >
23- 2. Go to your `create-react-app` project{ ' ' }
24- < Code > cd path-of-your-project</ Code >
25- </ SubTitle >
26- < SubTitle >
27- 3. Deploy your project to CodeSandbox < Code > codesandbox ./</ Code >
28- </ SubTitle >
29- </ Content >
30- </ Container >
31- </ Margin >
32- </ MaxWidth >
33- ) ;
13+ class CliInstructions extends React . PureComponent {
14+ componentDidMount ( ) {
15+ this . props . signals . cliInstructionsMounted ( ) ;
16+ }
17+
18+ render ( ) {
19+ return (
20+ < MaxWidth >
21+ < Margin vertical = { 1.5 } horizontal = { 1.5 } >
22+ < Container >
23+ < Navigation title = "CLI Import" />
24+ < Content vertical >
25+ < Title > Import from CLI</ Title >
26+ < SubTitle >
27+ 1. Install the CLI < Code > npm i -g codesandbox</ Code >
28+ </ SubTitle >
29+ < SubTitle >
30+ 2. Go to your `create-react-app` project{ ' ' }
31+ < Code > cd path-of-your-project</ Code >
32+ </ SubTitle >
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+ }
3443}
3544
36- export default CliInstructions ;
45+ export default inject ( [ 'signals' ] ) ( CliInstructions ) ;
0 commit comments