sync: update from private repo (e62f5c7)
CI / build-and-test (push) Has been cancelled

This commit is contained in:
oss-sync
2026-06-11 01:52:48 +00:00
parent 000a2474aa
commit d061ad08d8
237 changed files with 8441 additions and 5549 deletions
+4 -2
View File
@@ -1,4 +1,5 @@
import { useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
import type { MapData } from './types';
// Leaflet CDN を動的にロードする
@@ -33,6 +34,7 @@ function loadLeaflet(): Promise<void> {
declare const L: typeof import('leaflet');
export function MapPlacesDetail({ data }: { data: MapData }) {
const { t } = useTranslation('embed');
const { query, places } = data;
const mapRef = useRef<HTMLDivElement>(null);
const mapInstanceRef = useRef<import('leaflet').Map | null>(null);
@@ -85,7 +87,7 @@ export function MapPlacesDetail({ data }: { data: MapData }) {
return (
<div className="p-6">
<h2 className="text-lg font-bold text-slate-800 mb-4">
&#128205; : {query}
&#128205; {t('searchResults.map', { query })}
</h2>
{/* Leaflet map */}
@@ -115,7 +117,7 @@ export function MapPlacesDetail({ data }: { data: MapData }) {
rel="noopener noreferrer"
className="inline-flex items-center gap-1 px-3 py-1.5 bg-slate-100 hover:bg-slate-200 text-slate-700 text-xs font-semibold rounded-lg no-underline transition-colors"
>
OpenStreetMap
{t('viewOn.osm')}
</a>
</div>
))}