1
0
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:
llj
2024-08-01 11:31:43 +08:00
committed by GitHub
parent 848eca804b
commit 8aac3a27c8
17 changed files with 219 additions and 42 deletions

View File

@@ -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 }}