ConversationContext: conversationType => type
And a group conversation example to messages.md
This commit is contained in:
parent
d8d803d36d
commit
7bd747a796
3 changed files with 29 additions and 4 deletions
|
@ -7,7 +7,7 @@ interface Props {
|
|||
* Corresponds to the theme setting in the app, and the class added to the root element.
|
||||
*/
|
||||
theme: 'ios' | 'android' | 'android-dark';
|
||||
conversationType: 'private' | 'group';
|
||||
type: 'private' | 'group';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -16,11 +16,11 @@ interface Props {
|
|||
*/
|
||||
export class ConversationContext extends React.Component<Props, {}> {
|
||||
public render() {
|
||||
const { theme, conversationType } = this.props;
|
||||
const { theme, type } = this.props;
|
||||
|
||||
return (
|
||||
<div className={theme || 'android'}>
|
||||
<div className={classnames('conversation', conversationType || 'private')}>
|
||||
<div className={classnames('conversation', type || 'private')}>
|
||||
<div className="discussion-container" style={{padding: '0.5em'}}>
|
||||
<ul className="message-list">
|
||||
{this.props.children}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue