mirror of
https://github.com/wassname/talk.git
synced 2026-07-17 11:33:39 +08:00
Fully working :)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import QuestionBox from 'talk-plugin-questionbox/QuestionBox';
|
||||
import {Icon} from 'coral-ui';
|
||||
import {Icon, Spinner} from 'coral-ui';
|
||||
import DefaultIcon from './DefaultIcon';
|
||||
import cn from 'classnames';
|
||||
import styles from './QuestionBoxBuilder.css';
|
||||
@@ -32,7 +32,7 @@ class QuestionBoxBuilder extends React.Component {
|
||||
const {loading, MarkdownEditor} = this.state;
|
||||
|
||||
if (loading) {
|
||||
return <div> Loading </div>;
|
||||
return <Spinner/>;
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import Markdown from './Markdown';
|
||||
import Markdown from 'coral-framework/components/Markdown';
|
||||
|
||||
const packagename = 'talk-plugin-infobox';
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ import React from 'react';
|
||||
import cn from 'classnames';
|
||||
import styles from './QuestionBox.css';
|
||||
import {Icon} from 'coral-ui';
|
||||
import Markdown from 'coral-framework/components/Markdown';
|
||||
|
||||
import Slot from 'coral-framework/components/Slot';
|
||||
|
||||
@@ -20,7 +21,7 @@ const QuestionBox = ({content, enable, icon = '', className = ''}) => (
|
||||
)
|
||||
}
|
||||
<div className={cn(styles.qbContent, 'questionbox-content')}>
|
||||
{content}
|
||||
<Markdown content={content} />
|
||||
</div>
|
||||
|
||||
<Slot fill="streamQuestionArea" />
|
||||
|
||||
Reference in New Issue
Block a user