lint
This commit is contained in:
parent
7da500fe0a
commit
482178b7b6
@ -1,5 +1,5 @@
|
|||||||
import { useState, useRef, useEffect, useDeferredValue } from "react";
|
import { useState, useRef, useEffect, useDeferredValue } from "react";
|
||||||
import { AppState, BinaryFiles } from "../types";
|
import { BinaryFiles } from "../types";
|
||||||
import { useApp } from "./App";
|
import { useApp } from "./App";
|
||||||
import { Button } from "./Button";
|
import { Button } from "./Button";
|
||||||
import { Dialog } from "./Dialog";
|
import { Dialog } from "./Dialog";
|
||||||
@ -8,10 +8,7 @@ import {
|
|||||||
convertToExcalidrawElements,
|
convertToExcalidrawElements,
|
||||||
exportToCanvas,
|
exportToCanvas,
|
||||||
} from "../packages/excalidraw/index";
|
} from "../packages/excalidraw/index";
|
||||||
import {
|
import { NonDeletedExcalidrawElement } from "../element/types";
|
||||||
ExcalidrawElement,
|
|
||||||
NonDeletedExcalidrawElement,
|
|
||||||
} from "../element/types";
|
|
||||||
import { canvasToBlob } from "../data/blob";
|
import { canvasToBlob } from "../data/blob";
|
||||||
import { ArrowRightIcon } from "./icons";
|
import { ArrowRightIcon } from "./icons";
|
||||||
import Spinner from "./Spinner";
|
import Spinner from "./Spinner";
|
||||||
@ -127,7 +124,7 @@ const MermaidToExcalidraw = ({
|
|||||||
|
|
||||||
setText(data);
|
setText(data);
|
||||||
}
|
}
|
||||||
}, [loading]);
|
}, [loading, selectedElements]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const renderExcalidrawPreview = async () => {
|
const renderExcalidrawPreview = async () => {
|
||||||
@ -186,7 +183,7 @@ const MermaidToExcalidraw = ({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
renderExcalidrawPreview();
|
renderExcalidrawPreview();
|
||||||
}, [deferredText]);
|
}, [deferredText, text]);
|
||||||
|
|
||||||
const onClose = () => {
|
const onClose = () => {
|
||||||
app.setActiveTool({ type: "selection" });
|
app.setActiveTool({ type: "selection" });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user