Skip to content

Commit

Permalink
optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouwenxuan authored and zhouwenxuan committed Nov 15, 2024
1 parent c860c03 commit 1b4b581
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/dialog/move-dirent-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,13 @@ class MoveDirent extends React.Component {
const { isCustomPermission } = Utils.getUserPermission(permission);

return (
<Modal className='custom-modal' isOpen={true} toggle={this.toggle}>
<Modal className="custom-modal" isOpen={true} toggle={this.toggle}>
<ModalHeader toggle={this.toggle} close={
<div className="header-close-list">
<span aria-hidden="true" className="sf3-font sf3-font-x-01 comment-close-icon" onClick={this.toggle}></span>
</div>
}>
{isMultipleOperation ? this.renderTitle() : <div dangerouslySetInnerHTML={{ __html: this.renderTitle() }} className='d-flex'></div>}
{isMultipleOperation ? this.renderTitle() : <div dangerouslySetInnerHTML={{ __html: this.renderTitle() }} className="d-flex"></div>}
{isPro && (
showSearchBar ? (
<Searcher
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/file-chooser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import RepoInfo from '../../models/repo-info';
import { seafileAPI } from '../../utils/seafile-api';
import { gettext, isPro } from '../../utils/constants';
import { Utils } from '../../utils/utils';
import { MODE_TYPE_MAP } from '../../constants';

import '../../css/file-chooser.css';
import { MODE_TYPE_MAP } from '../../constants';

const propTypes = {
isShowFile: PropTypes.bool,
Expand Down

0 comments on commit 1b4b581

Please sign in to comment.