@@ -78,18 +65,7 @@ export function MapInfoPopup({
/>
}
- onClick={() => onLocate(popupLngLat.lng, popupLngLat.lat)}
- isLoading={isLocateLoading}
- copyDisabled={locate.length === 0}
- testId="locate-point"
- />
-
-
}
diff --git a/src/components/ui/coordinate-row.tsx b/src/components/ui/coordinate-row.tsx
index cf7ed3e4..7bfce495 100644
--- a/src/components/ui/coordinate-row.tsx
+++ b/src/components/ui/coordinate-row.tsx
@@ -1,26 +1,23 @@
import { type ReactNode } from 'react';
import { Loader2 } from 'lucide-react';
-import { Button } from '@/components/ui/button';
-import { ButtonGroup } from '@/components/ui/button-group';
import { CopyButton } from '@/components/ui/copy-button';
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from '@/components/ui/tooltip';
+import { cn } from '@/lib/utils';
interface CoordinateRowProps {
- /** Tooltip content describing the button */
+ /** Tooltip content describing the label */
label: string;
- /** Display value/label shown in the button */
+ /** Display value/label shown */
value: string;
/** Text to copy to clipboard. If omitted, no copy button is shown */
copyText?: string;
/** Optional icon to show before the value */
icon?: ReactNode;
- /** Click handler for the main button */
- onClick?: () => void;
- /** Shows loading spinner and disables button */
+ /** Shows loading spinner */
isLoading?: boolean;
/** Disables the copy button */
copyDisabled?: boolean;
@@ -33,37 +30,38 @@ function CoordinateRow({
value,
copyText,
icon,
- onClick,
isLoading,
copyDisabled,
testId,
}: CoordinateRowProps) {
return (
-
+
-
+
{label}
{copyText && (
)}
-
+