|
@@ -1,8 +1,14 @@
|
|
|
import React, { useRef } from "react";
|
|
|
+import styled from "styled-components";
|
|
|
import useMap from "../../../hooks/useMap";
|
|
|
import useMarkedPoints from "./useMarkedPoints";
|
|
|
import RoundInfoPane from "./RoundInfoPane";
|
|
|
|
|
|
+const MapDiv = styled.div`
|
|
|
+ height: 100%;
|
|
|
+ width: 100%;
|
|
|
+`
|
|
|
+
|
|
|
export default ({ gameId, round, onNext }) => {
|
|
|
const {
|
|
|
roundNum,
|
|
@@ -17,7 +23,7 @@ export default ({ gameId, round, onNext }) => {
|
|
|
|
|
|
return (
|
|
|
<div className="round-summary">
|
|
|
- <div className="round-summary__map"><div className="map-div" ref={mapDivRef} /></div>
|
|
|
+ <div className="round-summary__map"><MapDiv ref={mapDivRef} /></div>
|
|
|
<RoundInfoPane {...{ gameId, selectedPoint, targetPoint, roundNum, score, totalScore, onNext }}/>
|
|
|
</div>
|
|
|
);
|