fix: Allow null in renderFooter prop (#5282)

* fix: Allow null in render props

* update docs
This commit is contained in:
Aakansha Doshi 2022-06-06 20:45:06 +05:30 committed by GitHub
parent aabcdc20fd
commit f1bc90e08a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 5 deletions

View file

@ -277,7 +277,7 @@ export interface ExcalidrawProps {
isMobile: boolean,
appState: AppState,
) => JSX.Element | null;
renderFooter?: (isMobile: boolean, appState: AppState) => JSX.Element;
renderFooter?: (isMobile: boolean, appState: AppState) => JSX.Element | null;
langCode?: Language["code"];
viewModeEnabled?: boolean;
zenModeEnabled?: boolean;