瀏覽代碼

fix image download not showing

AykutSarac 2 年之前
父節點
當前提交
8ea9cebba4
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      src/components/CustomNode/styles.tsx
  2. 1 1
      src/containers/Editor/Tools.tsx

+ 2 - 2
src/components/CustomNode/styles.tsx

@@ -26,8 +26,8 @@ export const StyledTextWrapper = styled.div`
 export const StyledText = styled.div<{
   width: number;
   height: number;
-  parent: boolean;
-  hideCollapse: boolean;
+  parent?: boolean;
+  hideCollapse?: boolean;
 }>`
   display: flex;
   justify-content: center;

+ 1 - 1
src/containers/Editor/Tools.tsx

@@ -78,7 +78,7 @@ export const Tools: React.FC = () => {
       </StyledToolElement>
       {!performanceMode && <SearchInput />}
 
-      {!performance && (
+      {!performanceMode && (
         <StyledToolElement
           aria-label="save"
           onClick={() => setDownloadVisible(true)}