From 5136b504980b447df32b01f896260f399f7cd40a Mon Sep 17 00:00:00 2001 From: shanshuirenjia <978987373@qq.com> Date: Tue, 11 Dec 2018 18:05:57 +0800 Subject: [PATCH] repair path nav bug --- frontend/src/app.js | 10 +++++----- frontend/src/pages/groups/group-view.js | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/src/app.js b/frontend/src/app.js index 12f519726f..6494bf9f19 100644 --- a/frontend/src/app.js +++ b/frontend/src/app.js @@ -1,6 +1,6 @@ import React, { Component, Fragment } from 'react'; import ReactDOM from 'react-dom'; -import { Router } from '@reach/router'; +import { Router, Link } from '@reach/router'; import { gettext, siteRoot } from './utils/constants'; import SidePanel from './components/side-panel'; import MainPanel from './components/main-panel'; @@ -113,9 +113,9 @@ class App extends Component { if (groupID) { //group return ( - {gettext('Groups')} + {gettext('Groups')} / - {currentTab} + {currentTab} / ); @@ -123,7 +123,7 @@ class App extends Component { if (currentTab === 'my-libs') { return ( - {gettext('Libraries')} + {gettext('Libraries')} / ); @@ -131,7 +131,7 @@ class App extends Component { if (currentTab === 'shared-libs') { return ( - {gettext('Shared with me')} + {gettext('Shared with me')} / ); diff --git a/frontend/src/pages/groups/group-view.js b/frontend/src/pages/groups/group-view.js index c35f78b818..3cc367c8a2 100644 --- a/frontend/src/pages/groups/group-view.js +++ b/frontend/src/pages/groups/group-view.js @@ -1,6 +1,7 @@ import React,{ Fragment } from 'react'; import PropTypes from 'prop-types'; import { gettext, siteRoot, username, loginUrl } from '../../utils/constants'; +import { Link } from '@reach/router'; import { seafileAPI } from '../../utils/seafile-api'; import Loading from '../../components/loading'; import ModalPortal from '../../components/modal-portal'; @@ -202,7 +203,7 @@ class GroupView extends React.Component { {currentGroup && (
- {gettext("Groups")} + {gettext("Groups")} / {currentGroup.name} {currentGroup.parent_group_id !== 0 && (