From 3fa475009a55f76556c66bca549203a8bbfc7998 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 20 Jul 2017 02:30:06 +0700 Subject: [PATCH] Use getDefinition name from plugin-api --- plugin-api/beta/client/utils/index.js | 1 + .../talk-plugin-featured-comments/client/containers/TabPane.js | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin-api/beta/client/utils/index.js b/plugin-api/beta/client/utils/index.js index 5b9748699..e0ff635e0 100644 --- a/plugin-api/beta/client/utils/index.js +++ b/plugin-api/beta/client/utils/index.js @@ -3,4 +3,5 @@ export { insertCommentsSorted, getSlotFragmentSpreads, forEachError, + getDefinitionName, } from 'coral-framework/utils'; diff --git a/plugins/talk-plugin-featured-comments/client/containers/TabPane.js b/plugins/talk-plugin-featured-comments/client/containers/TabPane.js index e2be0ad99..e9d466061 100644 --- a/plugins/talk-plugin-featured-comments/client/containers/TabPane.js +++ b/plugins/talk-plugin-featured-comments/client/containers/TabPane.js @@ -4,10 +4,9 @@ import {compose, gql} from 'react-apollo'; import TabPane from '../components/TabPane'; import {withFragments, connect} from 'plugin-api/beta/client/hocs'; import Comment from '../containers/Comment'; -import {getDefinitionName} from 'coral-framework/utils'; import {addNotification} from 'plugin-api/beta/client/actions/notification'; import {viewComment} from 'coral-embed-stream/src/actions/stream'; -import {insertCommentsSorted} from 'plugin-api/beta/client/utils'; +import {insertCommentsSorted, getDefinitionName} from 'plugin-api/beta/client/utils'; import update from 'immutability-helper'; class TabPaneContainer extends React.Component {