Skip to content

Commit

Permalink
Site Settings: Run codemods on composing (Automattic#18080)
Browse files Browse the repository at this point in the history
* Apply codemod react-prop-types

* Remove some empty lines
  • Loading branch information
tyxla authored Sep 15, 2017
1 parent f7fff2b commit e35467f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* External dependencies
*/
import React, { Component, PropTypes } from 'react';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { localize } from 'i18n-calypso';
import { connect } from 'react-redux';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* External dependencies
*/
import React, { PropTypes } from 'react';
import PropTypes from 'prop-types';
import React from 'react';
import { localize } from 'i18n-calypso';
import { connect } from 'react-redux';
import { map } from 'lodash';
Expand Down
3 changes: 2 additions & 1 deletion client/my-sites/site-settings/composing/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* External dependencies
*/
import React, { PropTypes } from 'react';
import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';

/**
Expand Down
11 changes: 6 additions & 5 deletions client/my-sites/site-settings/composing/publish-confirmation.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* External dependencies
*/
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { localize } from 'i18n-calypso';
Expand Down Expand Up @@ -69,11 +70,11 @@ PublishConfirmation.defaultProps = {
};

PublishConfirmation.propTypes = {
siteId: React.PropTypes.number,
fetchingPreferences: React.PropTypes.bool,
publishConfirmationEnabled: React.PropTypes.bool,
savePublishConfirmationPreference: React.PropTypes.func,
translate: React.PropTypes.func,
siteId: PropTypes.number,
fetchingPreferences: PropTypes.bool,
publishConfirmationEnabled: PropTypes.bool,
savePublishConfirmationPreference: PropTypes.func,
translate: PropTypes.func,
};

export default connect(
Expand Down

0 comments on commit e35467f

Please sign in to comment.