sdy

update props

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