Explorar o código

fix image download not showing

AykutSarac %!s(int64=2) %!d(string=hai) anos
pai
achega
8ea9cebba4
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  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)}