refactor: optimize replay preview state management and cleanup editor UI components
Build and Release / release (push) Successful in 1m0s

This commit is contained in:
taDuc
2026-05-28 18:24:04 +07:00
parent 0dbe26fd4e
commit b94f5f44cb
4 changed files with 214 additions and 73 deletions
-10
View File
@@ -15,7 +15,6 @@ import WikiSidebarPanel from "@/uhm/components/wiki/WikiSidebarPanel";
import ProjectEntityRefsPanel from "@/uhm/components/editor/ProjectEntityRefsPanel";
import EntityWikiBindingsPanel from "@/uhm/components/editor/EntityWikiBindingsPanel";
import GeometryBindingPanel from "@/uhm/components/editor/GeometryBindingPanel";
import ImageOverlayPanel from "@/uhm/components/editor/ImageOverlayPanel";
import { Entity, fetchEntities, searchEntitiesByName } from "@/uhm/api/entities";
import { ApiError } from "@/uhm/api/http";
import { fetchCurrentUser } from "@/uhm/api/auth";
@@ -2781,15 +2780,6 @@ function EditorPageContent() {
isGeoSearching={isGeoSearching}
onImportGeoFromSearch={handleImportGeoFromSearch}
/>
<ImageOverlayPanel
overlay={imageOverlay}
onPickImage={handlePickImageOverlay}
onPasteImage={handlePasteImageOverlay}
keyboardEnabled={imageOverlayKeyboardEnabled}
onKeyboardEnabledChange={setImageOverlayKeyboardEnabled}
onOpacityChange={handleImageOverlayOpacityChange}
onRemove={handleRemoveImageOverlay}
/>
<GeometryBindingPanel
geometries={geometryChoices}
selectedGeometryId={selectedFeature ? String(selectedFeature.properties.id) : null}