refactor(web): one memo component, MemoEditor, with view and edit modes (#6481)

This commit is contained in:
boojack
2026-10-18 12:11:55 +08:00
committed by GitHub
parent 1a51572406
commit 3bea6df030
192 changed files with 2207 additions and 1370 deletions
+2 -2
View File
@@ -305,9 +305,9 @@ export function MapView() {
compose={
composeLocation && user && (!creatorUsername || creatorUsername === user.username)
? {
cacheKey: `map-editor:${user?.name}:${selectedSpaceName ?? "all"}:${locationKey(composeLocation)}`,
scope: `map:${user?.name}:${selectedSpaceName ?? "all"}:${locationKey(composeLocation)}`,
label: t("map.new-here"),
defaults: { defaultLocation: composeLocation },
defaults: { location: composeLocation },
onComposingChange: setComposing,
onSavingChange: setSaving,
onConfirm: (name) => void afterSave(name),