Full support for quotations in Android theme

This commit is contained in:
Scott Nonnenberg 2018-04-11 23:55:32 -07:00
parent 47a3acd5c9
commit 1cc0633786
No known key found for this signature in database
GPG key ID: 5F82280C35134661
13 changed files with 734 additions and 128 deletions

View file

@ -1,4 +1,5 @@
import React from 'react';
import classnames from 'classnames';
interface Props {
@ -6,6 +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';
}
/**
@ -14,11 +16,11 @@ interface Props {
*/
export class ConversationContext extends React.Component<Props, {}> {
public render() {
const { theme } = this.props;
const { theme, conversationType } = this.props;
return (
<div className={theme}>
<div className="conversation">
<div className={theme || 'android'}>
<div className={classnames('conversation', conversationType || 'private')}>
<div className="discussion-container" style={{padding: '0.5em'}}>
<ul className="message-list">
{this.props.children}