Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

style: Removes extra spaces (#6558)

Mohammad Amin6977c326318b
diff --git a/dev-docs/docs/@excalidraw/excalidraw/api/children-components/footer.mdx b/dev-docs/docs/@excalidraw/excalidraw/api/children-components/footer.mdx
index 2626818955..cdd5ea5a49 100644
--- a/dev-docs/docs/@excalidraw/excalidraw/api/children-components/footer.mdx
+++ b/dev-docs/docs/@excalidraw/excalidraw/api/children-components/footer.mdx
@@ -16,7 +16,6 @@ function App() {
className="custom-footer"
onClick={() => alert("This is dummy footer")}
>
- {" "}
custom footer
</button>
</Footer>
diff --git a/dev-docs/docs/@excalidraw/excalidraw/api/children-components/main-menu.mdx b/dev-docs/docs/@excalidraw/excalidraw/api/children-components/main-menu.mdx
index 8fbf228df1..2494df108f 100644
--- a/dev-docs/docs/@excalidraw/excalidraw/api/children-components/main-menu.mdx
+++ b/dev-docs/docs/@excalidraw/excalidraw/api/children-components/main-menu.mdx
@@ -14,8 +14,7 @@ function App() {
Item1
</MainMenu.Item>
<MainMenu.Item onSelect={() => window.alert("Item2")}>
- {" "}
- Item 2{" "}
+ Item 2
</MainMenu.Item>
</MainMenu>
</Excalidraw>
@@ -93,7 +92,6 @@ function App() {
style={{ height: "2rem" }}
onClick={() => window.alert("custom menu item")}
>
- {" "}
custom item
</button>
</MainMenu.ItemCustom>
diff --git a/dev-docs/docs/@excalidraw/excalidraw/api/props/render-props.mdx b/dev-docs/docs/@excalidraw/excalidraw/api/props/render-props.mdx
index ca329e3e62..6531e29ecf 100644
--- a/dev-docs/docs/@excalidraw/excalidraw/api/props/render-props.mdx
+++ b/dev-docs/docs/@excalidraw/excalidraw/api/props/render-props.mdx
@@ -3,7 +3,7 @@
## renderTopRightUI
<pre>
- (isMobile: boolean, appState:{" "}
+ (isMobile: boolean, appState:
<a href="https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L95">
AppState
</a>
@@ -29,8 +29,7 @@ function App() {
}}
onClick={() => window.alert("This is dummy top right UI")}
>
- {" "}
- Click me{" "}
+ Click me
</button>
);
}}
@@ -55,8 +54,7 @@ function App() {
<Excalidraw
renderCustomStats={() => (
<p style={{ color: "#70b1ec", fontWeight: "bold" }}>
- {" "}
- Dummy stats will be shown here{" "}
+ Dummy stats will be shown here
</p>
)}
/>
@@ -105,8 +103,7 @@ function App() {
return (
<div style={{ height: "500px" }}>
<button className="custom-button" onClick={() => excalidrawAPI.toggleMenu("customSidebar")}>
- {" "}
- Toggle Custom Sidebar{" "}
+ Toggle Custom Sidebar
</button>
<Excalidraw
UIOptions={{ dockedSidebarBreakpoint: 100 }}
diff --git a/src/components/App.tsx b/src/components/App.tsx
index 02e317f7f6..752854e920 100644
--- a/src/components/App.tsx
+++ b/src/components/App.tsx
@@ -661,7 +661,7 @@ class App extends React.Component<AppProps, AppState> {
)}
<main>{this.renderCanvas()}</main>
</ExcalidrawActionManagerContext.Provider>
- </ExcalidrawElementsContext.Provider>{" "}
+ </ExcalidrawElementsContext.Provider>
</ExcalidrawAppStateContext.Provider>
</ExcalidrawSetAppStateContext.Provider>
</DeviceContext.Provider>
diff --git a/src/excalidraw-app/collab/RoomDialog.tsx b/src/excalidraw-app/collab/RoomDialog.tsx
index 50f586efc6..42c123302a 100644
--- a/src/excalidraw-app/collab/RoomDialog.tsx
+++ b/src/excalidraw-app/collab/RoomDialog.tsx
@@ -154,7 +154,7 @@ const RoomDialog = ({
<p>
<span role="img" aria-hidden="true" className="RoomDialog-emoji">
{"🔒"}
- </span>{" "}
+ </span>
{t("roomDialog.desc_privacy")}
</p>
<p>{t("roomDialog.desc_exitSession")}</p>
diff --git a/src/packages/excalidraw/example/App.tsx b/src/packages/excalidraw/example/App.tsx
index 85993a6831..3a0634e63e 100644
--- a/src/packages/excalidraw/example/App.tsx
+++ b/src/packages/excalidraw/example/App.tsx
@@ -161,8 +161,7 @@ export default function App({ appTitle, useCustom, customArgs }: AppProps) {
onClick={() => alert("This is an empty top right UI")}
style={{ height: "2.5rem" }}
>
- {" "}
- Click me{" "}
+ Click me
</button>
</>
);
diff --git a/src/packages/excalidraw/example/CustomFooter.tsx b/src/packages/excalidraw/example/CustomFooter.tsx
index fbc2ea7323..5c47de6c68 100644
--- a/src/packages/excalidraw/example/CustomFooter.tsx
+++ b/src/packages/excalidraw/example/CustomFooter.tsx
@@ -65,8 +65,7 @@ const CustomFooter = ({
className="custom-footer"
onClick={() => alert("This is dummy footer")}
>
- {" "}
- custom footer{" "}
+ custom footer
</button>
</>
);
diff --git a/src/packages/excalidraw/example/sidebar/ExampleSidebar.tsx b/src/packages/excalidraw/example/sidebar/ExampleSidebar.tsx
index 793d17b05f..4c51ecdc26 100644
--- a/src/packages/excalidraw/example/sidebar/ExampleSidebar.tsx
+++ b/src/packages/excalidraw/example/sidebar/ExampleSidebar.tsx
@@ -11,7 +11,7 @@ export default function Sidebar({ children }: { children: React.ReactNode }) {
</button>
<div className="sidebar-links">
<button>Empty Home</button>
- <button>Empty About</button>{" "}
+ <button>Empty About</button>
</div>
</div>
<div className={`${open ? "sidebar-open" : ""}`}>
diff --git a/src/tests/packages/__snapshots__/excalidraw.test.tsx.snap b/src/tests/packages/__snapshots__/excalidraw.test.tsx.snap
index 09402981e1..d703dff879 100644
--- a/src/tests/packages/__snapshots__/excalidraw.test.tsx.snap
+++ b/src/tests/packages/__snapshots__/excalidraw.test.tsx.snap
@@ -43,7 +43,6 @@ exports[`<Excalidraw/> <MainMenu/> should render main menu with host menu items
<button
style="height: 2rem;"
>
-
custom menu item
</button>
</div>
diff --git a/src/tests/packages/excalidraw.test.tsx b/src/tests/packages/excalidraw.test.tsx
index a0d4959363..a5734b2ed9 100644
--- a/src/tests/packages/excalidraw.test.tsx
+++ b/src/tests/packages/excalidraw.test.tsx
@@ -220,7 +220,6 @@ describe("<Excalidraw/>", () => {
style={{ height: "2rem" }}
onClick={() => window.alert("custom menu item")}
>
- {" "}
custom item
</button>
</MainMenu.ItemCustom>
@@ -345,7 +344,6 @@ describe("<Excalidraw/>", () => {
style={{ height: "2rem" }}
onClick={() => window.alert("custom menu item")}
>
- {" "}
custom menu item
</button>
</MainMenu.ItemCustom>