Преглед на файлове

Changing to label instead of title

Kirk Trombley преди 5 години
родител
ревизия
e14514cf36
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      client/src/components/screens/RoundSummary/useClickToCheckScore.jsx

+ 4 - 1
client/src/components/screens/RoundSummary/useClickToCheckScore.jsx

@@ -5,6 +5,9 @@ export default (mapRef, point1) => {
   // when the map is clicked, call the scoring API and update the marker's title
   useClickMarker(mapRef, async (point2, marker) => {
     const { score } = await checkScore(point1, point2);
-    marker.setTitle(`Potential Score: ${score}`);
+    marker.setLabel({
+      fontWeight: "500",
+      text: `Potential Score: ${score}`
+    });
   });
 }