diff --git a/docs/src/components/marker.tsx b/docs/src/components/marker.tsx index a60a4e6..319e912 100644 --- a/docs/src/components/marker.tsx +++ b/docs/src/components/marker.tsx @@ -3,7 +3,7 @@ import React from 'react' interface MarkerProps { className?: string - draggable?: boolean + draggable: boolean lat: number lng: number markerId: string @@ -16,13 +16,27 @@ interface MarkerProps { onDragStart?: (e: React.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