Skip to content

Commit

Permalink
💚 fix CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgia Bosello committed Dec 20, 2023
1 parent 68de2c3 commit 4e925c6
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions docs/src/components/marker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'

interface MarkerProps {
className?: string
draggable?: boolean
draggable: boolean
lat: number
lng: number
markerId: string
Expand All @@ -16,13 +16,27 @@ interface MarkerProps {
onDragStart?: (e: React.MouseEvent<HTMLImageElement, MouseEvent>, props: { latLng: LatLngLiteral }) => void
}

const Marker = ({ className, lat, lng, markerId, onClick, ...props }: MarkerProps) =>
const Marker = ({
className,
lat,
lng,
markerId,
onClick,
draggable,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
onDrag,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
onDragEnd,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
onDragStart,
...props
}: MarkerProps) =>
lat && lng ? (
// eslint-disable-next-line @next/next/no-img-element, jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
<img
className={className}
src={`${process.env.NEXT_PUBLIC_MEDIA_URL ?? '/google-maps-react-markers'}/marker-pin${
props?.draggable ? '-draggable' : ''
draggable ? '-draggable' : ''
}.png`}
// lat={lat}
// lng={lng}
Expand Down

0 comments on commit 4e925c6

Please sign in to comment.