Modify action buttons visibility for desktop (#1156)

This commit is contained in:
Sanghyeon Lee 2020-04-02 16:52:24 +09:00 committed by GitHub
parent ffec3af635
commit 634410ad48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 8 deletions

View file

@ -1,6 +1,6 @@
import React from "react";
import { showSelectedShapeActions } from "../element";
import { calculateScrollCenter, getTargetElement } from "../scene";
import { calculateScrollCenter } from "../scene";
import { exportCanvas } from "../data";
import { AppState } from "../types";
@ -137,7 +137,8 @@ export const LayerUI = React.memo(
>
<Island padding={4}>
<SelectedShapeActions
targetElements={getTargetElement(elements, appState)}
appState={appState}
elements={elements}
renderAction={actionManager.renderAction}
elementType={appState.elementType}
/>