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

feat: storage tree-panel section state (#7282)

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-12-30 19:01:33 +08:00
committed by GitHub
parent 324d981420
commit 50887d21dc
7 changed files with 40 additions and 12 deletions

View File

@@ -224,7 +224,7 @@ class DirColumnView extends React.Component {
updateCurrentDirent={this.props.updateCurrentDirent}
/>
)}
{currentMode === LIST_MODE &&
{currentMode === LIST_MODE && (
<DirListView
path={this.props.path}
repoID={this.props.repoID}
@@ -264,8 +264,8 @@ class DirColumnView extends React.Component {
getMenuContainerSize={this.getMenuContainerSize}
eventBus={this.props.eventBus}
/>
}
{currentMode === GRID_MODE &&
)}
{currentMode === GRID_MODE && (
<DirGridView
path={this.props.path}
repoID={this.props.repoID}
@@ -301,7 +301,7 @@ class DirColumnView extends React.Component {
getMenuContainerSize={this.getMenuContainerSize}
eventBus={this.props.eventBus}
/>
}
)}
</div>
</div>
);