When iOS device has been linked, use iOS color scheme
This commit is contained in:
parent
0eb2c958a5
commit
a247ffe5cf
12 changed files with 556 additions and 82 deletions
|
@ -7,6 +7,7 @@ interface Props {
|
|||
*/
|
||||
theme: 'light-theme' | 'dark-theme';
|
||||
type: 'private' | 'group';
|
||||
ios: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -15,10 +16,12 @@ interface Props {
|
|||
*/
|
||||
export class ConversationContext extends React.Component<Props> {
|
||||
public render() {
|
||||
const { theme, type } = this.props;
|
||||
const { theme, type, ios } = this.props;
|
||||
|
||||
return (
|
||||
<div className={theme || 'light-theme'}>
|
||||
<div
|
||||
className={classNames(theme || 'light-theme', ios ? 'ios-theme' : null)}
|
||||
>
|
||||
<div className={classNames('conversation', type || 'private')}>
|
||||
<div className="discussion-container" style={{ padding: '0.5em' }}>
|
||||
<ul className="message-list">{this.props.children}</ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue