mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: make history local to a given excalidraw instance (#3481)
* fix: make history local to a given excalidraw instance * changelog * Update src/packages/excalidraw/CHANGELOG.md
This commit is contained in:
parent
891ac82447
commit
d3106495b2
9 changed files with 33 additions and 411 deletions
|
@ -3,7 +3,7 @@ import React from "react";
|
|||
import { undo, redo } from "../components/icons";
|
||||
import { ToolButton } from "../components/ToolButton";
|
||||
import { t } from "../i18n";
|
||||
import { SceneHistory, HistoryEntry } from "../history";
|
||||
import History, { HistoryEntry } from "../history";
|
||||
import { ExcalidrawElement } from "../element/types";
|
||||
import { AppState } from "../types";
|
||||
import { isWindows, KEYS } from "../keys";
|
||||
|
@ -59,7 +59,7 @@ const writeData = (
|
|||
return { commitToHistory };
|
||||
};
|
||||
|
||||
type ActionCreator = (history: SceneHistory) => Action;
|
||||
type ActionCreator = (history: History) => Action;
|
||||
|
||||
export const createUndoAction: ActionCreator = (history) => ({
|
||||
name: "undo",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue