Fix eslint rules
[MAILPOET-1348]
This commit is contained in:
@@ -1,19 +1,8 @@
|
||||
define(
|
||||
[
|
||||
'react',
|
||||
'jquery',
|
||||
'underscore',
|
||||
'mailpoet',
|
||||
'wp-js-hooks',
|
||||
],
|
||||
(
|
||||
React,
|
||||
jq,
|
||||
_,
|
||||
MailPoet,
|
||||
Hooks
|
||||
) => {
|
||||
const jQuery = jq;
|
||||
import React from 'react';
|
||||
import jQuery from 'jquery';
|
||||
import _ from 'underscore';
|
||||
import MailPoet from 'mailpoet';
|
||||
import Hooks from 'wp-js-hooks';
|
||||
|
||||
const currentTime = window.mailpoet_current_time || '00:00';
|
||||
const defaultDateTime = `${window.mailpoet_current_date} 00:00:00`;
|
||||
@@ -156,7 +145,7 @@ define(
|
||||
size="10"
|
||||
name={this.getFieldName()}
|
||||
value={this.getDisplayDate(this.props.value)}
|
||||
readOnly={true}
|
||||
readOnly
|
||||
disabled={this.props.disabled}
|
||||
onChange={this.onChange}
|
||||
ref={(c) => { this.dateInput = c; }}
|
||||
@@ -169,9 +158,9 @@ define(
|
||||
const TimeSelect = React.createClass({
|
||||
render: function render() {
|
||||
const options = Object.keys(timeOfDayItems).map(
|
||||
(value, index) => (
|
||||
value => (
|
||||
<option
|
||||
key={`option-${index}`}
|
||||
key={`option-${timeOfDayItems[value]}`}
|
||||
value={value}
|
||||
>
|
||||
{ timeOfDayItems[value] }
|
||||
@@ -418,7 +407,7 @@ define(
|
||||
|
||||
fields = Hooks.applyFilters('mailpoet_newsletters_3rd_step_fields', fields);
|
||||
|
||||
return {
|
||||
module.exports = {
|
||||
getFields: function getFields() {
|
||||
return fields;
|
||||
},
|
||||
@@ -443,5 +432,3 @@ define(
|
||||
return options;
|
||||
},
|
||||
};
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user