refactor: rename renderTopRight prop to renderTopRightUI (#3572)

* refactor: rename renderTopRight prop to renderTopRightUI

* update

* fix

* update
This commit is contained in:
Aakansha Doshi 2021-05-13 21:02:59 +05:30 committed by GitHub
parent bec34f2d57
commit 3b9290831a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 13 deletions

View file

@ -67,7 +67,7 @@ interface LayerUIProps {
appState: AppState,
canvas: HTMLCanvasElement | null,
) => void;
renderTopRight?: (isMobile: boolean, appState: AppState) => JSX.Element;
renderTopRightUI?: (isMobile: boolean, appState: AppState) => JSX.Element;
renderCustomFooter?: (isMobile: boolean) => JSX.Element;
viewModeEnabled: boolean;
libraryReturnUrl: ExcalidrawProps["libraryReturnUrl"];
@ -371,7 +371,7 @@ const LayerUI = ({
toggleZenMode,
isCollaborating,
onExportToBackend,
renderTopRight,
renderTopRightUI,
renderCustomFooter,
viewModeEnabled,
libraryReturnUrl,
@ -627,7 +627,7 @@ const LayerUI = ({
</Tooltip>
))}
</UserList>
{renderTopRight?.(isMobile, appState)}
{renderTopRightUI?.(isMobile, appState)}
</div>
</div>
</FixedSideContainer>