Added basic persistance to notes

This commit is contained in:
Mitchell McCaffrey
2020-11-03 17:15:39 +11:00
parent 84af4c5845
commit 6c1d952855
5 changed files with 107 additions and 26 deletions

View File

@@ -33,6 +33,7 @@ function Map({
onFogDraw,
onFogDrawUndo,
onFogDrawRedo,
onMapNoteAdd,
allowMapDrawing,
allowFogDrawing,
allowMapChange,
@@ -356,6 +357,9 @@ function Map({
active={selectedToolId === "note"}
gridSize={gridSizeNormalized}
selectedToolSettings={settings[selectedToolId]}
onNoteAdd={onMapNoteAdd}
// TODO: Sort by last modified
notes={mapState ? Object.values(mapState.notes) : []}
/>
);