Skip to content

Commit

Permalink
Fix: JS build breaks because registerAll tries to run EditInPlace com…
Browse files Browse the repository at this point in the history
…ponent (#2886)
  • Loading branch information
arikfr authored Oct 2, 2018
1 parent 69635f2 commit ccac41c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 6 additions & 1 deletion client/app/components/EditInPlace.jsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -83,3 +84,7 @@ export default class EditInPlace extends React.Component {
return this.renderNormal();
}
}

export default function init(ngModule) {
ngModule.component('editInPlace', react2angular(EditInPlace));
}
6 changes: 0 additions & 6 deletions client/app/components/edit-in-place.js

This file was deleted.

0 comments on commit ccac41c

Please sign in to comment.