Skip to content

Commit

Permalink
fix(flat-components): hide upload panel mask when not visible (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed Apr 26, 2021
1 parent b591512 commit a93a6ee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "./style.less";

import React, { useCallback } from "react";
import React from "react";
import { observer } from "mobx-react-lite";
import { Button } from "antd";
import { CSSTransition } from "react-transition-group";
Expand Down Expand Up @@ -56,7 +56,7 @@ export const CloudStorageContainer = observer<CloudStorageContainerProps>(
<CloudStorageFileListContainer store={store} />
</div>
<CSSTransition
in={store.isUploadPanelExpand && store.compact}
in={store.isUploadPanelVisible && store.isUploadPanelExpand && store.compact}
timeout={400}
classNames="cloud-storage-container-mask"
mountOnEnter
Expand Down

0 comments on commit a93a6ee

Please sign in to comment.