docbrown/app/javascript/chat/userDetails.jsx
Ben Halpern 94e5154668
Add initial invitation framework for chat channels (#528)
* Add initial invitation framework for chat channels

* Update chat_channel specs

* Add DIY concept of accepting invite

* Add some js and fix spec

* Add full invite accept functionality

* Remove console.log from chat
2018-07-02 16:31:20 -04:00

24 lines
No EOL
691 B
JavaScript

import { h, Component } from 'preact';
export default class UserDetails extends Component {
render() {
const user = this.props.user
return <div><img
src={user.profile_image}
style={{height: "210px",
width: "210px",
margin:" 15px auto",
display: "block",
borderRadius: "500px"}} />
<h1 style={{textAlign: "center"}}>
<a href={"/"+user.username}>{user.name}</a>
</h1>
<div style={{fontStyle: "italic"}}>
{user.summary}
</div>
</div>
}
}