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.
		
		
		
		
		
			
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			TypeScript
		
	
| import React from 'react';
 | |
| import ReactDOM from 'react-dom';
 | |
| 
 | |
| import {
 | |
|   SessionSettingCategory,
 | |
|   SettingsView,
 | |
| } from './session/settings/SessionSettings';
 | |
| 
 | |
| export const MainViewController = {
 | |
|   renderMessageView: () => {
 | |
|     if (document.getElementById('main-view')) {
 | |
|       ReactDOM.render(<MessageView />, document.getElementById('main-view'));
 | |
|     }
 | |
|   },
 | |
| 
 | |
|   renderSettingsView: (category: SessionSettingCategory) => {
 | |
|     if (document.getElementById('main-view')) {
 | |
|       ReactDOM.render(
 | |
|         <SettingsView category={category} />,
 | |
|         document.getElementById('main-view')
 | |
|       );
 | |
|     }
 | |
|   },
 | |
| };
 | |
| 
 | |
| export class MessageView extends React.Component {
 | |
|   public render() {
 | |
|     return (
 | |
|       <div className="conversation-stack">
 | |
|         <div className="conversation placeholder">
 | |
|           <div className="conversation-header" />
 | |
|           <div className="container">
 | |
|             <div className="content">
 | |
|               <img
 | |
|                 src="images/session/full-logo.svg"
 | |
|                 className="session-full-logo"
 | |
|                 alt="full-brand-logo"
 | |
|               />
 | |
|             </div>
 | |
|           </div>
 | |
|         </div>
 | |
|       </div>
 | |
|     );
 | |
|   }
 | |
| }
 |