This commit is contained in:
Tomas Dvorak
2026-01-26 08:13:18 +01:00
parent aa036b6550
commit dfc079288f
505 changed files with 95755 additions and 5712 deletions
@@ -263,6 +263,7 @@ const MapLinkImporter: React.FC<MapLinkImporterProps> = ({
overflow="hidden"
borderWidth="1px"
borderColor={borderColor}
minH="300px"
>
<ContactMap
latitude={previewCoords.latitude}
@@ -306,6 +307,41 @@ const MapLinkImporter: React.FC<MapLinkImporterProps> = ({
</>
)}
{/* Show map even without preview if coordinates exist */}
{!previewCoords && (currentLatitude && currentLongitude) && (
<>
<Divider />
<Box>
<Text fontWeight="semibold" mb={2}>
Náhled mapy
</Text>
<Box
borderRadius="md"
overflow="hidden"
borderWidth="1px"
borderColor={borderColor}
minH="300px"
>
<ContactMap
latitude={currentLatitude}
longitude={currentLongitude}
zoom={currentZoom || 15}
address={undefined}
clubName={clubName}
mapStyle={mapStyle || 'positron'}
clubPrimaryColor={clubPrimaryColor}
clubSecondaryColor={clubSecondaryColor}
height={300}
/>
</Box>
<Text fontSize="xs" color="gray.500" mt={2}>
Souřadnice: {currentLatitude.toFixed(6)}, {currentLongitude.toFixed(6)}
{currentZoom && ` | Zoom: ${currentZoom}`}
</Text>
</Box>
</>
)}
</VStack>
);
};