style: Removes extra spaces (#6558)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
f6f9ed0396
commit
6977c32631
@ -16,7 +16,6 @@ function App() {
|
|||||||
className="custom-footer"
|
className="custom-footer"
|
||||||
onClick={() => alert("This is dummy footer")}
|
onClick={() => alert("This is dummy footer")}
|
||||||
>
|
>
|
||||||
{" "}
|
|
||||||
custom footer
|
custom footer
|
||||||
</button>
|
</button>
|
||||||
</Footer>
|
</Footer>
|
||||||
|
@ -14,8 +14,7 @@ function App() {
|
|||||||
Item1
|
Item1
|
||||||
</MainMenu.Item>
|
</MainMenu.Item>
|
||||||
<MainMenu.Item onSelect={() => window.alert("Item2")}>
|
<MainMenu.Item onSelect={() => window.alert("Item2")}>
|
||||||
{" "}
|
Item 2
|
||||||
Item 2{" "}
|
|
||||||
</MainMenu.Item>
|
</MainMenu.Item>
|
||||||
</MainMenu>
|
</MainMenu>
|
||||||
</Excalidraw>
|
</Excalidraw>
|
||||||
@ -93,7 +92,6 @@ function App() {
|
|||||||
style={{ height: "2rem" }}
|
style={{ height: "2rem" }}
|
||||||
onClick={() => window.alert("custom menu item")}
|
onClick={() => window.alert("custom menu item")}
|
||||||
>
|
>
|
||||||
{" "}
|
|
||||||
custom item
|
custom item
|
||||||
</button>
|
</button>
|
||||||
</MainMenu.ItemCustom>
|
</MainMenu.ItemCustom>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
## renderTopRightUI
|
## renderTopRightUI
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
(isMobile: boolean, appState:{" "}
|
(isMobile: boolean, appState:
|
||||||
<a href="https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L95">
|
<a href="https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L95">
|
||||||
AppState
|
AppState
|
||||||
</a>
|
</a>
|
||||||
@ -29,8 +29,7 @@ function App() {
|
|||||||
}}
|
}}
|
||||||
onClick={() => window.alert("This is dummy top right UI")}
|
onClick={() => window.alert("This is dummy top right UI")}
|
||||||
>
|
>
|
||||||
{" "}
|
Click me
|
||||||
Click me{" "}
|
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
@ -55,8 +54,7 @@ function App() {
|
|||||||
<Excalidraw
|
<Excalidraw
|
||||||
renderCustomStats={() => (
|
renderCustomStats={() => (
|
||||||
<p style={{ color: "#70b1ec", fontWeight: "bold" }}>
|
<p style={{ color: "#70b1ec", fontWeight: "bold" }}>
|
||||||
{" "}
|
Dummy stats will be shown here
|
||||||
Dummy stats will be shown here{" "}
|
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
@ -105,8 +103,7 @@ function App() {
|
|||||||
return (
|
return (
|
||||||
<div style={{ height: "500px" }}>
|
<div style={{ height: "500px" }}>
|
||||||
<button className="custom-button" onClick={() => excalidrawAPI.toggleMenu("customSidebar")}>
|
<button className="custom-button" onClick={() => excalidrawAPI.toggleMenu("customSidebar")}>
|
||||||
{" "}
|
Toggle Custom Sidebar
|
||||||
Toggle Custom Sidebar{" "}
|
|
||||||
</button>
|
</button>
|
||||||
<Excalidraw
|
<Excalidraw
|
||||||
UIOptions={{ dockedSidebarBreakpoint: 100 }}
|
UIOptions={{ dockedSidebarBreakpoint: 100 }}
|
||||||
|
@ -661,7 +661,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
)}
|
)}
|
||||||
<main>{this.renderCanvas()}</main>
|
<main>{this.renderCanvas()}</main>
|
||||||
</ExcalidrawActionManagerContext.Provider>
|
</ExcalidrawActionManagerContext.Provider>
|
||||||
</ExcalidrawElementsContext.Provider>{" "}
|
</ExcalidrawElementsContext.Provider>
|
||||||
</ExcalidrawAppStateContext.Provider>
|
</ExcalidrawAppStateContext.Provider>
|
||||||
</ExcalidrawSetAppStateContext.Provider>
|
</ExcalidrawSetAppStateContext.Provider>
|
||||||
</DeviceContext.Provider>
|
</DeviceContext.Provider>
|
||||||
|
@ -154,7 +154,7 @@ const RoomDialog = ({
|
|||||||
<p>
|
<p>
|
||||||
<span role="img" aria-hidden="true" className="RoomDialog-emoji">
|
<span role="img" aria-hidden="true" className="RoomDialog-emoji">
|
||||||
{"🔒"}
|
{"🔒"}
|
||||||
</span>{" "}
|
</span>
|
||||||
{t("roomDialog.desc_privacy")}
|
{t("roomDialog.desc_privacy")}
|
||||||
</p>
|
</p>
|
||||||
<p>{t("roomDialog.desc_exitSession")}</p>
|
<p>{t("roomDialog.desc_exitSession")}</p>
|
||||||
|
@ -161,8 +161,7 @@ export default function App({ appTitle, useCustom, customArgs }: AppProps) {
|
|||||||
onClick={() => alert("This is an empty top right UI")}
|
onClick={() => alert("This is an empty top right UI")}
|
||||||
style={{ height: "2.5rem" }}
|
style={{ height: "2.5rem" }}
|
||||||
>
|
>
|
||||||
{" "}
|
Click me
|
||||||
Click me{" "}
|
|
||||||
</button>
|
</button>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
@ -65,8 +65,7 @@ const CustomFooter = ({
|
|||||||
className="custom-footer"
|
className="custom-footer"
|
||||||
onClick={() => alert("This is dummy footer")}
|
onClick={() => alert("This is dummy footer")}
|
||||||
>
|
>
|
||||||
{" "}
|
custom footer
|
||||||
custom footer{" "}
|
|
||||||
</button>
|
</button>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
@ -11,7 +11,7 @@ export default function Sidebar({ children }: { children: React.ReactNode }) {
|
|||||||
</button>
|
</button>
|
||||||
<div className="sidebar-links">
|
<div className="sidebar-links">
|
||||||
<button>Empty Home</button>
|
<button>Empty Home</button>
|
||||||
<button>Empty About</button>{" "}
|
<button>Empty About</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={`${open ? "sidebar-open" : ""}`}>
|
<div className={`${open ? "sidebar-open" : ""}`}>
|
||||||
|
@ -43,7 +43,6 @@ exports[`<Excalidraw/> <MainMenu/> should render main menu with host menu items
|
|||||||
<button
|
<button
|
||||||
style="height: 2rem;"
|
style="height: 2rem;"
|
||||||
>
|
>
|
||||||
|
|
||||||
custom menu item
|
custom menu item
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -220,7 +220,6 @@ describe("<Excalidraw/>", () => {
|
|||||||
style={{ height: "2rem" }}
|
style={{ height: "2rem" }}
|
||||||
onClick={() => window.alert("custom menu item")}
|
onClick={() => window.alert("custom menu item")}
|
||||||
>
|
>
|
||||||
{" "}
|
|
||||||
custom item
|
custom item
|
||||||
</button>
|
</button>
|
||||||
</MainMenu.ItemCustom>
|
</MainMenu.ItemCustom>
|
||||||
@ -345,7 +344,6 @@ describe("<Excalidraw/>", () => {
|
|||||||
style={{ height: "2rem" }}
|
style={{ height: "2rem" }}
|
||||||
onClick={() => window.alert("custom menu item")}
|
onClick={() => window.alert("custom menu item")}
|
||||||
>
|
>
|
||||||
{" "}
|
|
||||||
custom menu item
|
custom menu item
|
||||||
</button>
|
</button>
|
||||||
</MainMenu.ItemCustom>
|
</MainMenu.ItemCustom>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user