aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/PM.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components/PM.js')
-rw-r--r--vnext/src/components/PM.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/vnext/src/components/PM.js b/vnext/src/components/PM.js
index 6b8c053b..a1e70ad5 100644
--- a/vnext/src/components/PM.js
+++ b/vnext/src/components/PM.js
@@ -5,7 +5,7 @@ import { UserType, MessageType } from './Types';
import Avatar from './Avatar';
import { format } from '../utils/embed';
-export default function PM(props) {
+function PM(props) {
const { chat } = props;
return (
<li>
@@ -19,6 +19,8 @@ export default function PM(props) {
);
}
+export default React.memo(PM);
+
function bubbleStyle(me, msg) {
const isMe = me.uid === msg.user.uid;
const color = isMe ? '#fff' : '#222';