You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			32 lines
		
	
	
		
			791 B
		
	
	
	
		
			TypeScript
		
	
		
		
			
		
	
	
			32 lines
		
	
	
		
			791 B
		
	
	
	
		
			TypeScript
		
	
| 
											8 years ago
										 | import React from 'react'; | ||
|  | 
 | ||
|  | 
 | ||
| 
											8 years ago
										 | interface Props { | ||
| 
											8 years ago
										 |   /** | ||
|  |    * Corresponds to the theme setting in the app, and the class added to the root element. | ||
|  |    */ | ||
| 
											8 years ago
										 |   theme: 'ios' | 'android' | 'android-dark'; | ||
| 
											8 years ago
										 | } | ||
|  | 
 | ||
|  | /** | ||
|  |  * Provides the parent elements necessary to allow the main Signal Desktop stylesheet to | ||
| 
											8 years ago
										 |  * apply (with no changes) to messages in the Style Guide. | ||
| 
											8 years ago
										 |  */ | ||
| 
											8 years ago
										 | export class ConversationContext extends React.Component<Props, {}> { | ||
| 
											8 years ago
										 |   public render() { | ||
|  |     const { theme } = this.props; | ||
|  | 
 | ||
|  |     return ( | ||
|  |       <div className={theme}> | ||
|  |         <div className="conversation"> | ||
|  |           <div className="discussion-container" style={{padding: '0.5em'}}> | ||
|  |             <ul className="message-list"> | ||
|  |               {this.props.children} | ||
|  |             </ul> | ||
|  |           </div> | ||
|  |         </div> | ||
|  |       </div> | ||
|  |     ); | ||
|  |   } | ||
|  | } |