mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 11:21:29 +00:00
File view new icons (#6448)
* ['file view'] use new icons(svg icons) * ['file view'] use new icons for 'markdown file view' page * ['file view'] for 'markdown & other text files': highlight the 'Save' button when it can be saved
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Button, Tooltip } from 'reactstrap';
|
||||
import Icon from './icon';
|
||||
|
||||
const propTypes = {
|
||||
id: PropTypes.string.isRequired,
|
||||
@@ -25,11 +26,12 @@ class IconButton extends React.Component {
|
||||
tooltipOpen: !this.state.tooltipOpen
|
||||
});
|
||||
};
|
||||
|
||||
render() {
|
||||
const className = 'btn-icon';
|
||||
const btnContent = (
|
||||
<React.Fragment>
|
||||
<i className={this.props.icon}></i>
|
||||
<Icon symbol={this.props.icon} />
|
||||
<Tooltip
|
||||
toggle={this.toggle}
|
||||
delay={{ show: 0, hide: 0 }}
|
||||
|
Reference in New Issue
Block a user