fix frontend build issues

This commit is contained in:
igoradamenko
2018-09-29 23:14:20 +03:00
parent ab6bfff32f
commit 06baa07da4
2 changed files with 6 additions and 0 deletions
@@ -4,6 +4,7 @@ import { connect } from 'preact-redux';
import api from 'common/api';
import LastCommentsList from './last-comments-list';
import { getHandleClickProps } from 'common/accessibility';
import Avatar from 'components/avatar-icon';
import { fetchComments, completeFetchComments } from './user-info.actions';
import { getUserComments, getIsLoadingUserComments } from './user-info.getters';
+5
View File
@@ -50,6 +50,11 @@ function init() {
picture: params.picture,
};
store.set('user', user);
const onClose = () => {
if (window.parent) {
window.parent.postMessage(JSON.stringify({ isUserInfoShown: false }), '*');
}
};
render(
<div id={NODE_ID}>
<div className="root root_user-info">