Browse Source

fix: lint

Ryan Di 2 months ago
parent
commit
118fd7bafa
1 changed files with 8 additions and 9 deletions
  1. 8 9
      packages/excalidraw/components/App.tsx

+ 8 - 9
packages/excalidraw/components/App.tsx

@@ -594,10 +594,9 @@ class App extends React.Component<AppProps, AppState> {
   private initializedEmbeds = new Set<ExcalidrawIframeLikeElement["id"]>();
 
   private handleToastClose = () => {
-  this.setToast(null);
+    this.setToast(null);
   };
 
-
   private elementsPendingErasure: ElementsPendingErasure = new Set();
 
   public flowChartCreator: FlowChartCreator = new FlowChartCreator();
@@ -1712,14 +1711,14 @@ class App extends React.Component<AppProps, AppState> {
                               />
                             </ElementCanvasButtons>
                           )}
-                        
+
                         {this.state.toast !== null && (
-                        <Toast
-                         message={this.state.toast.message}
-                         onClose={this.handleToastClose} // ✅ Stable reference
-                         duration={this.state.toast.duration}
-                         closable={this.state.toast.closable}
-                         />
+                          <Toast
+                            message={this.state.toast.message}
+                            onClose={this.handleToastClose}
+                            duration={this.state.toast.duration}
+                            closable={this.state.toast.closable}
+                          />
                         )}
 
                         {this.state.contextMenu && (