sdy

update props

...@@ -6,6 +6,10 @@ import { GET_ROOMS } from "./RoomQueries"; ...@@ -6,6 +6,10 @@ import { GET_ROOMS } from "./RoomQueries";
6 6
7 export default withRouter(() => { 7 export default withRouter(() => {
8 const { data } = useQuery(GET_ROOMS); 8 const { data } = useQuery(GET_ROOMS);
9 - console.log(data); 9 + let roomArray;
10 - return <RoomPresenter />; 10 + if (data !== undefined) {
11 + const { getRooms } = data;
12 + roomArray = getRooms;
13 + }
14 + return <RoomPresenter roomArray={roomArray} />;
11 }); 15 });
......