mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-03 10:16:26 -04:00
fix: lint
This commit is contained in:
parent
21f492fb13
commit
118fd7bafa
@ -594,10 +594,9 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
private initializedEmbeds = new Set<ExcalidrawIframeLikeElement["id"]>();
|
private initializedEmbeds = new Set<ExcalidrawIframeLikeElement["id"]>();
|
||||||
|
|
||||||
private handleToastClose = () => {
|
private handleToastClose = () => {
|
||||||
this.setToast(null);
|
this.setToast(null);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
private elementsPendingErasure: ElementsPendingErasure = new Set();
|
private elementsPendingErasure: ElementsPendingErasure = new Set();
|
||||||
|
|
||||||
public flowChartCreator: FlowChartCreator = new FlowChartCreator();
|
public flowChartCreator: FlowChartCreator = new FlowChartCreator();
|
||||||
@ -1712,14 +1711,14 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
/>
|
/>
|
||||||
</ElementCanvasButtons>
|
</ElementCanvasButtons>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{this.state.toast !== null && (
|
{this.state.toast !== null && (
|
||||||
<Toast
|
<Toast
|
||||||
message={this.state.toast.message}
|
message={this.state.toast.message}
|
||||||
onClose={this.handleToastClose} // ✅ Stable reference
|
onClose={this.handleToastClose}
|
||||||
duration={this.state.toast.duration}
|
duration={this.state.toast.duration}
|
||||||
closable={this.state.toast.closable}
|
closable={this.state.toast.closable}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{this.state.contextMenu && (
|
{this.state.contextMenu && (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user