Browse Source

fix image download not showing

AykutSarac 2 years ago
parent
commit
8ea9cebba4
2 changed files with 3 additions and 3 deletions
  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)}