1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 06:33:48 +00:00

adjust style

This commit is contained in:
Michael An
2019-04-25 10:50:06 +08:00
parent 0d2f5cc5ed
commit eaeb75fddc
4 changed files with 92 additions and 29 deletions

View File

@@ -3,7 +3,8 @@ import PropTypes from 'prop-types';
import { siteRoot, mediaUrl, logoPath, logoWidth, logoHeight, siteTitle } from '../utils/constants';
const propTypes = {
onCloseSidePanel: PropTypes.func.isRequired,
onCloseSidePanel: PropTypes.func,
showCloseSidePanelIcon: PropTypes.bool,
};
class Logo extends React.Component {
@@ -18,13 +19,15 @@ class Logo extends React.Component {
<a href={siteRoot} id="logo">
<img src={mediaUrl + logoPath} height={logoHeight} width={logoWidth} title={siteTitle} alt="logo" />
</a>
<a
className="sf2-icon-x1 sf-popover-close side-panel-close action-icon d-md-none"
onClick={this.closeSide}
title="Close"
aria-label="Close"
>
</a>
{this.props.showCloseSidePanelIcon &&
<a
className="sf2-icon-x1 sf-popover-close side-panel-close action-icon d-md-none"
onClick={this.closeSide}
title="Close"
aria-label="Close"
>
</a>
}
</div>
);
}