aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Avatar.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-17 01:54:48 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:52 +0300
commit6ea8e69d331067a9ac8da267bd09e689e2a171d2 (patch)
tree3a2e54c84cfb8f8aa825899f760f2309b56e2d62 /vnext/src/components/Avatar.js
parent5ee478a197868a560aaf392affef6afa9563b827 (diff)
Avatar component
Diffstat (limited to 'vnext/src/components/Avatar.js')
-rw-r--r--vnext/src/components/Avatar.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/vnext/src/components/Avatar.js b/vnext/src/components/Avatar.js
new file mode 100644
index 00000000..72b5d2d1
--- /dev/null
+++ b/vnext/src/components/Avatar.js
@@ -0,0 +1,15 @@
+import React from 'react';
+
+import { UserType } from './Types';
+
+export default function Avatar(props) {
+ return (
+ <div className="msg-avatar"><a href={`/${props.user.uname}/`}>
+ <img src={`//i.juick.com/a/${props.user.uid}.png`} alt={`${props.user.uname}`} /></a>
+ </div>
+ );
+}
+
+Avatar.propTypes = {
+ user: UserType
+}