Update MobileMenu.tsx

This commit is contained in:
zsviczian 2022-03-11 11:46:53 +01:00 committed by GitHub
parent d3857fbb35
commit 554985f749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,7 @@ export const MobileMenu = ({
(appState.editingElement && (appState.editingElement &&
!isTextElement(appState.editingElement)), !isTextElement(appState.editingElement)),
})} })}
> >
<div <div
className="App-bottom-bar" className="App-bottom-bar"
style={{ style={{
@ -206,9 +206,11 @@ export const MobileMenu = ({
) )
.map(([clientId, client]) => ( .map(([clientId, client]) => (
<React.Fragment key={clientId}> <React.Fragment key={clientId}>
{actionManager.renderAction("goToCollaborator", { {actionManager.renderAction(
id: clientId, "goToCollaborator", {
})} id: clientId,
}
)}
</React.Fragment> </React.Fragment>
))} ))}
</UserList> </UserList>
@ -220,7 +222,10 @@ export const MobileMenu = ({
) : appState.openMenu === "shape" && ) : appState.openMenu === "shape" &&
!viewModeEnabled && !viewModeEnabled &&
showSelectedShapeActions(appState, elements) ? ( showSelectedShapeActions(appState, elements) ? (
<Section className="App-mobile-menu" heading="selectedShapeActions"> <Section
className="App-mobile-menu"
heading="selectedShapeActions"
>
<SelectedShapeActions <SelectedShapeActions
appState={appState} appState={appState}
elements={elements} elements={elements}