Skip to content
Snippets Groups Projects

Correct linter and tsc errors

Merged Dani Quilez requested to merge bugfix/linter_tsc_errors into dev
9 files
+ 154
6389
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -12,7 +12,12 @@ export default function EmbededPlace({ place }: Props) {
const { lat, lng, active, goalProgress } = place
const realPercentage = useMarkerPercentage(goalProgress)
const percentage = active ? Percentage.full : realPercentage
const icon = useMarkerIcon({ active, percentage, slug: place.category_slug })
const icon = useMarkerIcon({
active,
percentage,
slug: place.category_slug,
color: place.markerColor
})
const latLng = useRef({ lat: parseFloat(lat), lng: parseFloat(lng) }).current
return <Marker icon={icon} position={latLng} />
Loading