From debf2ad60817cad40e0cdd3d5a9a0262b40cfbdc Mon Sep 17 00:00:00 2001 From: Vedant Mishra <122669445+vedantmishra69@users.noreply.github.com> Date: Sun, 20 Apr 2025 16:05:38 +0530 Subject: [PATCH] docs: Fix missing verb in Footer component documentation (#9393) --- .../excalidraw/api/children-components/footer.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 3831268f0f..e7852cee94 100644 --- a/dev-docs/docs/@excalidraw/excalidraw/api/children-components/footer.mdx +++ b/dev-docs/docs/@excalidraw/excalidraw/api/children-components/footer.mdx @@ -2,7 +2,7 @@ Earlier we were using `renderFooter` prop to render custom footer which was removed in [#5970](https://github.com/excalidraw/excalidraw/pull/5970). Now you can pass a `Footer` component instead to render the custom UI for footer. -You will need to import the `Footer` component from the package and wrap your component with the Footer component. The `Footer` should a valid React Node. +You will need to import the `Footer` component from the package and wrap your component with the Footer component. The `Footer` should be a valid React Node. **Usage** @@ -25,7 +25,7 @@ function App() { } ``` -This will only for `Desktop` devices. +This will only work for `Desktop` devices. For `mobile` you will need to render it inside the [MainMenu](#mainmenu). You can use the [`useDevice`](#useDevice) hook to check the type of device, this will be available only inside the `children` of `Excalidraw` component. @@ -65,4 +65,4 @@ const App = () => ( // Need to render when code is span across multiple components // in Live Code blocks editor render(); -``` \ No newline at end of file +```