mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-27 07:44:50 +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:
@@ -17,10 +17,10 @@ class Content extends Component {
|
||||
const desktopThead = (
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="13%">{gettext("Platform")}</th>
|
||||
<th width="30%">{gettext("Device Name")}</th>
|
||||
<th width="30%">{gettext("IP")}</th>
|
||||
<th width="17%">{gettext("Last Access")}</th>
|
||||
<th width="13%">{gettext('Platform')}</th>
|
||||
<th width="30%">{gettext('Device Name')}</th>
|
||||
<th width="30%">{gettext('IP')}</th>
|
||||
<th width="17%">{gettext('Last Access')}</th>
|
||||
<th width="10%"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -28,7 +28,7 @@ class Content extends Component {
|
||||
const mobileThead = (
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="25%">{gettext("Platform")}</th>
|
||||
<th width="25%">{gettext('Platform')}</th>
|
||||
<th width="70%">{gettext('Device Name')}</th>
|
||||
<th width="5%"></th>
|
||||
</tr>
|
||||
@@ -101,11 +101,11 @@ class Item extends Component {
|
||||
this.setState({
|
||||
unlinked: true
|
||||
});
|
||||
let msg_s = gettext("Successfully unlink %(name)s.");
|
||||
let msg_s = gettext('Successfully unlink %(name)s.');
|
||||
msg_s = msg_s.replace('%(name)s', data.device_name);
|
||||
toaster.success(msg_s);
|
||||
}).catch((error) => {
|
||||
let message = gettext("Failed to unlink %(name)s");
|
||||
let message = gettext('Failed to unlink %(name)s');
|
||||
message = message.replace('%(name)s', data.device_name);
|
||||
toaster.danger(message);
|
||||
});
|
||||
|
Reference in New Issue
Block a user