|
@@ -3,8 +3,8 @@ import styled from "styled-components";
|
|
|
import { useLastRound } from "../../../domain/gameStore";
|
|
|
import useMarkersFromGuesses from "./useMarkersFromGuesses";
|
|
|
import useMap from "../../../hooks/useMap";
|
|
|
-import useClickMarker from "../../../hooks/useClickMarker";
|
|
|
import NextRoundButton from "./NextRoundButton";
|
|
|
+import useClickToCheckScore from "./useClickToCheckScore";
|
|
|
|
|
|
const SummaryDiv = styled.div`
|
|
|
position: absolute;
|
|
@@ -38,10 +38,8 @@ export default () => {
|
|
|
// add the player guess markers
|
|
|
useMarkersFromGuesses(mapRef, roundNum, targetPoint);
|
|
|
|
|
|
- // let the current player click the map to add a new marker
|
|
|
- useClickMarker(mapRef, ({ lat, lng }) => {
|
|
|
- console.log(`lat: ${lat}, lng: ${lng}`);
|
|
|
- })
|
|
|
+ // let the current player click the map to see a possible score
|
|
|
+ useClickToCheckScore(mapRef, targetPoint);
|
|
|
|
|
|
return (
|
|
|
<div>
|