diff options
author | Vitaly Takmazov | 2018-06-17 01:54:48 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:52 +0300 |
commit | 6ea8e69d331067a9ac8da267bd09e689e2a171d2 (patch) | |
tree | 3a2e54c84cfb8f8aa825899f760f2309b56e2d62 /vnext/src/index.js | |
parent | 5ee478a197868a560aaf392affef6afa9563b827 (diff) |
Avatar component
Diffstat (limited to 'vnext/src/index.js')
-rw-r--r-- | vnext/src/index.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js index bf1d78ac..e5eda859 100644 --- a/vnext/src/index.js +++ b/vnext/src/index.js @@ -7,6 +7,7 @@ import Post from './components/Post'; import Thread from './components/Thread'; import LoginButton from './components/LoginButton'; import Footer from './components/Footer'; +import Avatar from './components/Avatar'; const elClassHidden = 'header--hidden' const elClassBackground = 'header--background'; @@ -85,9 +86,7 @@ class App extends React.Component { <div id="header_wrapper"> {this.state.visitor.uid > 0 ? <div id="ctitle"> - <a href={`/${this.state.visitor.uname}`}> - <img src={`//i.juick.com/a/${this.state.visitor.uid}.png`} alt="" />{this.state.visitor.uname} - </a> + <Avatar user={this.state.visitor} /> </div> : <div id="logo"><Link to="/">Juick</Link></div> |