1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 03:11:07 +00:00

Prop type check repair (#2919)

* repair intent check wraning

* change doublequote to singlequote, add semicolon

* optimized code

* modify type-check wraning
This commit is contained in:
杨顺强
2019-01-31 17:37:02 +08:00
committed by Daniel Pan
parent 06f25f05f2
commit e57701fa38
74 changed files with 714 additions and 700 deletions

View File

@@ -53,8 +53,8 @@ class Content extends Component {
} else {
const emptyTip = (
<div className="empty-tip">
<h2>{gettext("You don't have any share links")}</h2>
<p>{gettext("You can generate a share link for a folder or a file. Anyone who receives this link can view the folder or the file online.")}</p>
<h2>{gettext('You don\'t have any share links')}</h2>
<p>{gettext('You can generate a share link for a folder or a file. Anyone who receives this link can view the folder or the file online.')}</p>
</div>
);
@@ -70,8 +70,8 @@ class Content extends Component {
<tr>
<th width="4%">{/*icon*/}</th>
<th width="36%"><a className="d-block table-sort-op" href="#" onClick={this.sortByName}>{gettext('Name')} {sortByName && sortIcon}</a></th>
<th width="24%">{gettext("Library")}</th>
<th width="12%">{gettext("Visits")}</th>
<th width="24%">{gettext('Library')}</th>
<th width="12%">{gettext('Visits')}</th>
<th width="14%"><a className="d-block table-sort-op" href="#" onClick={this.sortByTime}>{gettext('Expiration')} {sortByTime && sortIcon}</a></th>
<th width="10%">{/*Operations*/}</th>
</tr>
@@ -261,20 +261,20 @@ class ShareAdminShareLinks extends Component {
if (error.response.status == 403) {
this.setState({
loading: false,
errorMsg: gettext("Permission denied")
errorMsg: gettext('Permission denied')
});
location.href = `${loginUrl}?next=${encodeURIComponent(location.href)}`;
} else {
this.setState({
loading: false,
errorMsg: gettext("Error")
errorMsg: gettext('Error')
});
}
} else {
this.setState({
loading: false,
errorMsg: gettext("Please check the network.")
errorMsg: gettext('Please check the network.')
});
}
});