File tree 3 files changed +15
-13
lines changed
3 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 43
43
"connect-flash" : " 0.1.1" ,
44
44
"cookie-session" : " 2.0.0-beta.3" ,
45
45
"copy-to-clipboard" : " 3.2.0" ,
46
- "create-react-class" : " 15.7.0" ,
47
46
"csurf" : " 1.11.0" ,
48
47
"express" : " 4.17.1" ,
49
48
"graphql" : " 14.6.0" ,
Original file line number Diff line number Diff line change @@ -11,24 +11,23 @@ import AppSelector from 'dashboard/AppSelector.react';
11
11
import AppsManager from 'lib/AppsManager' ;
12
12
import history from 'dashboard/history' ;
13
13
import ParseApp from 'lib/ParseApp' ;
14
- import createClass from 'create-react-class' ;
15
14
16
- let AppData = createClass ( {
17
- childContextTypes : {
18
- generatePath : PropTypes . func ,
19
- currentApp : PropTypes . instanceOf ( ParseApp )
20
- } ,
15
+ class AppData extends React . Component {
16
+ constructor ( props ) {
17
+ super ( props ) ;
18
+ this . generatePath = this . generatePath . bind ( this ) ;
19
+ }
21
20
22
21
getChildContext ( ) {
23
22
return {
24
23
generatePath : this . generatePath ,
25
24
currentApp : AppsManager . findAppBySlugOrName ( this . props . params . appId )
26
25
} ;
27
- } ,
26
+ }
28
27
29
28
generatePath ( path ) {
30
29
return '/apps/' + this . props . params . appId + '/' + path ;
31
- } ,
30
+ }
32
31
33
32
render ( ) {
34
33
if ( this . props . params . appId === '_' ) {
@@ -48,6 +47,11 @@ let AppData = createClass({
48
47
</ div >
49
48
) ;
50
49
}
51
- } ) ;
50
+ }
51
+
52
+ AppData . childContextTypes = {
53
+ generatePath : PropTypes . func ,
54
+ currentApp : PropTypes . instanceOf ( ParseApp )
55
+ } ;
52
56
53
57
export default AppData ;
Original file line number Diff line number Diff line change @@ -54,17 +54,16 @@ import {
54
54
Switch ,
55
55
} from 'react-router' ;
56
56
import { Route , Redirect } from 'react-router-dom' ;
57
- import createClass from 'create-react-class' ;
58
57
import { Helmet } from 'react-helmet' ;
59
58
import Playground from './Data/Playground/Playground.react' ;
60
59
61
60
const ShowSchemaOverview = false ; //In progress features. Change false to true to work on this feature.
62
61
63
- let Empty = createClass ( {
62
+ class Empty extends React . Component {
64
63
render ( ) {
65
64
return < div > Not yet implemented</ div > ;
66
65
}
67
- } ) ;
66
+ }
68
67
69
68
const AccountSettingsPage = ( ) => (
70
69
< AccountView section = 'Account Settings' >
You can’t perform that action at this time.
0 commit comments