From 075d62a32a56356d5514f6ef59b7bc83a44c9652 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Mon, 2 Oct 2017 20:50:43 +0700 Subject: [PATCH] Move CommentDetails to plugin-api --- .../src => coral-framework}/components/CommentDetail.css | 0 .../src => coral-framework}/components/CommentDetail.js | 0 plugin-api/beta/client/components/index.js | 1 + .../talk-plugin-flag-details/client/components/FlagDetails.js | 3 +-- .../client/components/ToxicDetail.js | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename client/{coral-admin/src => coral-framework}/components/CommentDetail.css (100%) rename client/{coral-admin/src => coral-framework}/components/CommentDetail.js (100%) diff --git a/client/coral-admin/src/components/CommentDetail.css b/client/coral-framework/components/CommentDetail.css similarity index 100% rename from client/coral-admin/src/components/CommentDetail.css rename to client/coral-framework/components/CommentDetail.css diff --git a/client/coral-admin/src/components/CommentDetail.js b/client/coral-framework/components/CommentDetail.js similarity index 100% rename from client/coral-admin/src/components/CommentDetail.js rename to client/coral-framework/components/CommentDetail.js diff --git a/plugin-api/beta/client/components/index.js b/plugin-api/beta/client/components/index.js index a0ae0f3da..b87dec73b 100644 --- a/plugin-api/beta/client/components/index.js +++ b/plugin-api/beta/client/components/index.js @@ -4,3 +4,4 @@ export {default as IfSlotIsEmpty} from 'coral-framework/components/IfSlotIsEmpty export {default as IfSlotIsNotEmpty} from 'coral-framework/components/IfSlotIsNotEmpty'; export {default as CommentAuthorName} from 'coral-framework/components/CommentAuthorName'; export {default as CommentTimestamp} from 'coral-framework/components/CommentTimestamp'; +export {default as CommentDetail} from 'coral-framework/components/CommentDetail'; diff --git a/plugins/talk-plugin-flag-details/client/components/FlagDetails.js b/plugins/talk-plugin-flag-details/client/components/FlagDetails.js index eadd779d9..3b1f222da 100644 --- a/plugins/talk-plugin-flag-details/client/components/FlagDetails.js +++ b/plugins/talk-plugin-flag-details/client/components/FlagDetails.js @@ -2,8 +2,7 @@ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import styles from './FlagDetails.css'; import {t} from 'plugin-api/beta/client/services'; -import CommentDetail from 'coral-admin/src/components/CommentDetail'; -import {Slot, IfSlotIsNotEmpty} from 'plugin-api/beta/client/components'; +import {Slot, IfSlotIsNotEmpty, CommentDetail} from 'plugin-api/beta/client/components'; class FlagDetails extends Component { diff --git a/plugins/talk-plugin-toxic-comments/client/components/ToxicDetail.js b/plugins/talk-plugin-toxic-comments/client/components/ToxicDetail.js index de8a0337c..3726d2b77 100644 --- a/plugins/talk-plugin-toxic-comments/client/components/ToxicDetail.js +++ b/plugins/talk-plugin-toxic-comments/client/components/ToxicDetail.js @@ -1,5 +1,5 @@ import React from 'react'; -import CommentDetail from 'coral-admin/src/components/CommentDetail'; +import {CommentDetail} from 'plugin-api/beta/client/components'; import {isToxic} from '../utils'; import styles from './ToxicDetail.css'; import cn from 'classnames';