1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 23:02:26 +00:00

feat: optimize code

This commit is contained in:
杨国璇
2024-11-15 16:08:46 +08:00
parent a629d1c07c
commit 5a7e25740f
16 changed files with 240 additions and 264 deletions

View File

@@ -14,6 +14,7 @@ import { GRID_MODE, LIST_MODE, METADATA_MODE } from './constants';
const propTypes = {
isSidePanelFolded: PropTypes.bool,
isTreePanelShown: PropTypes.bool.isRequired,
isDirentDetailShow: PropTypes.bool,
currentMode: PropTypes.string.isRequired,
path: PropTypes.string.isRequired,
repoID: PropTypes.string.isRequired,
@@ -198,6 +199,7 @@ class DirColumnView extends React.Component {
{currentMode === METADATA_MODE && (
<SeafileMetadata
mediaUrl={mediaUrl}
isDirentDetailShow={this.props.isDirentDetailShow}
repoID={this.props.repoID}
repoInfo={this.props.currentRepoInfo}
viewID={this.props.viewId}