1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

adjust code

This commit is contained in:
shanshuirenjia
2018-12-12 17:51:12 +08:00
parent 0d2796f659
commit 160efd7ad3
5 changed files with 31 additions and 27 deletions

View File

@@ -1,5 +1,6 @@
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { Link } from '@reach/router';
import { siteRoot, gettext } from '../../utils/constants';
const propTypes = {
@@ -49,7 +50,7 @@ class DirPath extends React.Component {
{this.props.pathPrefix ?
this.props.pathPrefix :
<Fragment>
<a href={siteRoot + 'my-libs/'} className="normal">{gettext('Libraries')}</a>
<Link to={siteRoot + 'my-libs/'} className="normal">{gettext('Libraries')}</Link>
<span className="path-split">/</span>
</Fragment>
}