split the code into components

This commit is contained in:
or-else
2018-10-23 21:31:28 +03:00
parent 8b02f39557
commit 4b7d76c150
49 changed files with 5213 additions and 5159 deletions
+20
View File
@@ -0,0 +1,20 @@
import React from 'react';
/* This is just a static page to display when no conversation is selected. */
export default class LogoView extends React.PureComponent {
render() {
var version = APP_NAME + ' (' + Tinode.getLibrary() + ')';
return (
<div id="dummy-view" className={this.props.hideSelf ? 'nodisplay' : null}>
<div>
<a href="https://github.com/tinode/chat/">
<img id="logo" alt="logo" src="img/logo.svg" />
<h2>Tinode Web</h2>
</a>
<p>Client: {version}</p>
<p>Server: {this.props.serverVersion} ({this.props.serverAddress})</p>
</div>
</div>
);
}
};