diff --git a/client/app/components/EditInPlace.jsx b/client/app/components/EditInPlace.jsx index 0879591a7a..aaf146add4 100644 --- a/client/app/components/EditInPlace.jsx +++ b/client/app/components/EditInPlace.jsx @@ -1,7 +1,8 @@ import React from 'react'; import PropTypes from 'prop-types'; +import { react2angular } from 'react2angular'; -export default class EditInPlace extends React.Component { +export class EditInPlace extends React.Component { static propTypes = { ignoreBlanks: PropTypes.bool, isEditable: PropTypes.bool, @@ -83,3 +84,7 @@ export default class EditInPlace extends React.Component { return this.renderNormal(); } } + +export default function init(ngModule) { + ngModule.component('editInPlace', react2angular(EditInPlace)); +} diff --git a/client/app/components/edit-in-place.js b/client/app/components/edit-in-place.js deleted file mode 100644 index f41e1e3ad9..0000000000 --- a/client/app/components/edit-in-place.js +++ /dev/null @@ -1,6 +0,0 @@ -import { react2angular } from 'react2angular'; -import EditInPlace from './EditInPlace.jsx'; - -export default function init(ngModule) { - ngModule.component('editInPlace', react2angular(EditInPlace)); -}