Skip to content

Commit ea21624

Browse files
Query data
1 parent d4e8300 commit ea21624

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/pages/ManageTasks/ManageTasks.tsx

+10-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,19 @@ import {
2121
} from "@ionic/react";
2222
import PageHeader from "../../components/PageHeader";
2323
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";
2527
export class ManageTasks extends Component {
2628
state = {
2729
showModal: false
2830
};
2931

32+
componentDidMount() {
33+
// const service = new ItemService();
34+
// service.getItems();
35+
}
36+
3037
/**
3138
* Navigate to new item add page
3239
*/
@@ -35,6 +42,7 @@ export class ManageTasks extends Component {
3542
};
3643

3744
render() {
45+
console.log("this.props", this.props);
3846
return (
3947
<IonPage>
4048
<PageHeader title="Manage Tasks">
@@ -161,4 +169,4 @@ export class ManageTasks extends Component {
161169
}
162170
}
163171

164-
export default ManageTasks;
172+
export default graphql(GET_TASKS)(ManageTasks);

0 commit comments

Comments
 (0)