mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-26 15:12:32 +00:00
fix eslint warning and code format (#5877)
This commit is contained in:
parent
adc8960fd8
commit
7456cf1fae
@ -30,13 +30,13 @@
|
||||
padding: 0 10px;
|
||||
width: 100%;
|
||||
}
|
||||
.wiki-page-container .sdoc-wiki-outline-container{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.wiki-page-container .sdoc-wiki-outline-container{
|
||||
.wiki-page-container .sdoc-wiki-outline-container {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.wiki-page-container .sdoc-wiki-outline-container {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ class DeletedRepoTable extends Component {
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{ deletedRepos && deletedRepos.map((item) => {
|
||||
{deletedRepos && deletedRepos.map((item) => {
|
||||
return (
|
||||
<DeletedRepoItem
|
||||
key={item.repo_id}
|
||||
@ -126,21 +126,17 @@ class DeletedRepoItem extends Component {
|
||||
}
|
||||
|
||||
onMouseEnter = () => {
|
||||
if (!this.props.isItemFreezed) {
|
||||
this.setState({
|
||||
hideRestoreMenu: false,
|
||||
highlight: true,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
onMouseLeave = () => {
|
||||
if (!this.props.isItemFreezed) {
|
||||
this.setState({
|
||||
hideRestoreMenu: true,
|
||||
highlight: false,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
restoreDeletedRepo = (e) => {
|
||||
@ -187,7 +183,6 @@ class DeletedRepoItem extends Component {
|
||||
}
|
||||
|
||||
DeletedRepoItem.propTypes = {
|
||||
isItemFreezed: PropTypes.bool.isRequired,
|
||||
repo: PropTypes.object.isRequired,
|
||||
refreshDeletedRepoList: PropTypes.func.isRequired,
|
||||
};
|
||||
|
@ -5,7 +5,7 @@ import { siteRoot, gettext } from '../../../utils/constants';
|
||||
|
||||
const propTypes = {
|
||||
orgID: PropTypes.string,
|
||||
orgName: PropTypes.string.isRequired,
|
||||
orgName: PropTypes.string,
|
||||
currentItem: PropTypes.string.isRequired
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user