diff --git a/.babelrc b/.babelrc
index ca2e2cead..41d27bf34 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,16 +1,15 @@
{
"sourceMaps": true,
"presets": [
- "stage-0",
"es2015"
],
"plugins": [
- ["transform-decorators-legacy"],
- ["transform-react-jsx"],
- ["transform-object-assign"],
- ["transform-class-properties"],
- ["transform-async-to-generator"],
- ["transform-object-rest-spread"],
- ["transform-class-properties"]
+ "add-module-exports",
+ "transform-async-to-generator",
+ "transform-class-properties",
+ "transform-decorators-legacy",
+ "transform-object-assign",
+ "transform-object-rest-spread",
+ "transform-react-jsx"
]
}
diff --git a/client/coral-admin/src/components/Comment.js b/client/coral-admin/src/components/Comment.js
index 4a21b0846..84c0e0541 100644
--- a/client/coral-admin/src/components/Comment.js
+++ b/client/coral-admin/src/components/Comment.js
@@ -30,7 +30,7 @@ export default props => {
{links ?
Contains Link : null}
-
+
{props.actions.map((action, i) => getActionButton(action, i, props))}
@@ -63,19 +63,21 @@ const getActionButton = (action, i, props) => {
if (action === 'ban') {
return (
);
}
return (
props.onClickAction(props.actionsMap[action].status, comment.id)}
/>
diff --git a/client/coral-admin/src/components/CommentList.js b/client/coral-admin/src/components/CommentList.js
index 597ea62a6..39de5121b 100644
--- a/client/coral-admin/src/components/CommentList.js
+++ b/client/coral-admin/src/components/CommentList.js
@@ -126,7 +126,10 @@ export default class CommentList extends React.Component {
const {active} = this.state;
return (
-
this.hideBanUserDialog()}
onClickBanUser={(userId, commentId) => this.banUser(userId, commentId)}
user={comments.banUser}/>
-
+
-
- this.setState({modalOpen: false})} />
-
+ this.setState({modalOpen: false})} />
);
-
}
}
diff --git a/client/coral-plugin-likes/LikeButton.js b/client/coral-plugin-likes/LikeButton.js
index 9e7d06f33..fae30c8c7 100644
--- a/client/coral-plugin-likes/LikeButton.js
+++ b/client/coral-plugin-likes/LikeButton.js
@@ -2,7 +2,7 @@ import React from 'react';
import {I18n} from '../coral-framework';
import translations from './translations.json';
-const name = 'coral-plugin-flags';
+const name = 'coral-plugin-likes';
const LikeButton = ({like, id, postAction, deleteAction, addItem, showSignInDialog, updateItem, currentUser, banned}) => {
const liked = like && like.current_user;
diff --git a/client/coral-sign-in/components/SignDialog.js b/client/coral-sign-in/components/SignDialog.js
index 68d96b910..966870293 100644
--- a/client/coral-sign-in/components/SignDialog.js
+++ b/client/coral-sign-in/components/SignDialog.js
@@ -9,10 +9,11 @@ import ForgotContent from './ForgotContent';
const SignDialog = ({open, view, handleClose, offset, ...props}) => (