1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 19:08:21 +00:00

Revert "add repo in right tool panel (#7410)" (#7413)

This reverts commit b07f33e07c.
This commit is contained in:
Daniel Pan
2025-01-23 09:50:56 +08:00
committed by GitHub
parent 9cf1e9564a
commit 2467734990
7 changed files with 16 additions and 75 deletions

View File

@@ -8,7 +8,6 @@ import { GRID_MODE, LIST_MODE } from './dir-view-mode/constants';
import '../css/view-modes.css';
const propTypes = {
className: PropTypes.string,
currentViewMode: PropTypes.string.isRequired,
switchViewMode: PropTypes.func.isRequired
};
@@ -48,7 +47,7 @@ class ViewModes extends React.Component {
render() {
const { isDropdownMenuOpen } = this.state;
const { currentViewMode, className = '' } = this.props;
const { currentViewMode } = this.props;
const shortcutMain = Utils.isMac() ? '⇧ ⌘' : 'Ctrl + Shift +';
const options = [
{ 'icon': 'list-view', 'text': gettext('List view'), 'value': LIST_MODE, 'shortcut': `${shortcutMain} 1` },
@@ -59,7 +58,6 @@ class ViewModes extends React.Component {
isOpen={isDropdownMenuOpen}
toggle={this.toggleDropdownMenu}
id="cur-view-change-mode-dropdown"
className={className}
>
<DropdownToggle
tag="div"