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:
@@ -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}
|
||||
|
Reference in New Issue
Block a user