File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,19 @@ import {
21
21
} from "@ionic/react" ;
22
22
import PageHeader from "../../components/PageHeader" ;
23
23
import "./ManageTasks.scss" ;
24
-
24
+ // import { ItemService } from "../../services/Item";
25
+ import { graphql } from "react-apollo" ;
26
+ import { GET_TASKS } from "../../graphQL/queries/graphql.queries" ;
25
27
export class ManageTasks extends Component {
26
28
state = {
27
29
showModal : false
28
30
} ;
29
31
32
+ componentDidMount ( ) {
33
+ // const service = new ItemService();
34
+ // service.getItems();
35
+ }
36
+
30
37
/**
31
38
* Navigate to new item add page
32
39
*/
@@ -35,6 +42,7 @@ export class ManageTasks extends Component {
35
42
} ;
36
43
37
44
render ( ) {
45
+ console . log ( "this.props" , this . props ) ;
38
46
return (
39
47
< IonPage >
40
48
< PageHeader title = "Manage Tasks" >
@@ -161,4 +169,4 @@ export class ManageTasks extends Component {
161
169
}
162
170
}
163
171
164
- export default ManageTasks ;
172
+ export default graphql ( GET_TASKS ) ( ManageTasks ) ;
You can’t perform that action at this time.
0 commit comments