sdy

update room container

1 import React from "react"; 1 import React from "react";
2 +import { useQuery } from "@apollo/react-hooks";
2 import { withRouter } from "react-router-dom"; 3 import { withRouter } from "react-router-dom";
3 import RoomPresenter from "./RoomPresenter"; 4 import RoomPresenter from "./RoomPresenter";
5 +import { GET_ROOMS } from "./RoomQueries";
4 6
5 -export default withRouter(({ location }) => { 7 +export default withRouter(() => {
8 + const { data } = useQuery(GET_ROOMS);
9 + console.log(data);
6 return <RoomPresenter />; 10 return <RoomPresenter />;
7 }); 11 });
......