From 955f75f1c049e4b81f2995ef4e90f5d4a657077a Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Wed, 24 Oct 2018 14:27:30 +0300
Subject: drop schema.org metadata
---
vnext/src/components/Avatar.js | 12 +++++++-----
vnext/src/components/Message.js | 10 +++++-----
vnext/src/components/Thread.js | 4 ++--
.../components/__tests__/__snapshots__/Avatar.test.js.snap | 12 ++----------
4 files changed, 16 insertions(+), 22 deletions(-)
(limited to 'vnext/src/components')
diff --git a/vnext/src/components/Avatar.js b/vnext/src/components/Avatar.js
index f79d7b09..31d7dd34 100644
--- a/vnext/src/components/Avatar.js
+++ b/vnext/src/components/Avatar.js
@@ -4,7 +4,7 @@ import { Link } from 'react-router-dom';
import { UserType } from './Types';
-export default function Avatar(props) {
+const Avatar = React.memo(function AvatarComponent(props) {
return (
@@ -13,16 +13,18 @@ export default function Avatar(props) {
-
-
- {props.user.uname}
+
+
+ {props.user.uname}
{props.children}
);
-}
+});
+
+export default Avatar;
Avatar.propTypes = {
user: UserType,
diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js
index b36936ba..1ecbf996 100644
--- a/vnext/src/components/Message.js
+++ b/vnext/src/components/Message.js
@@ -11,12 +11,12 @@ import { format } from '../utils/embed';
export default function Message({ data, visitor, children, ...rest }) {
return (
-
+
-
@@ -26,11 +26,11 @@ export default function Message({ data, visitor, children, ...rest }) {
{data.photo &&
-
+
}