mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-14 07:24:58 +00:00
* ['Files'] added 'view mode' options & added 'grid' mode for 'My Libraries' & 'Shared with me' * ['Files'] added 'grid' mode for 'Shared with all' & 'department/group'; redesigned the empty tip for 'grid' mode; replaced 'star/unstar/monitored' icons * ['Files'] added 'sort'(WIP) * ['Files' page] added 'sort' for all the libraries
32 lines
837 B
JavaScript
32 lines
837 B
JavaScript
import React, { Fragment } from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { UncontrolledTooltip } from 'reactstrap';
|
|
import { gettext } from '../utils/constants';
|
|
|
|
const propTypes = {
|
|
repoID: PropTypes.string.isRequired,
|
|
className: PropTypes.string
|
|
};
|
|
|
|
class RepoMonitoredIcon extends React.Component {
|
|
|
|
render() {
|
|
const { repoID, className } = this.props;
|
|
return (
|
|
<Fragment>
|
|
<i id={`watching-${repoID}`} className={`sf3-font-monitor sf3-font ${className ? className : ''}`}></i>
|
|
<UncontrolledTooltip
|
|
placement="bottom"
|
|
target={`#watching-${repoID}`}
|
|
>
|
|
{gettext('You are watching file changes of this library.')}
|
|
</UncontrolledTooltip>
|
|
</Fragment>
|
|
);
|
|
}
|
|
}
|
|
|
|
RepoMonitoredIcon.propTypes = propTypes;
|
|
|
|
export default RepoMonitoredIcon;
|