From 8c768c19ce3e3b7bb61344cc8c77a54e10641c6d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 5 Jul 2018 12:37:53 +0300 Subject: transform-object-rest-spread --- vnext/src/components/Message.js | 62 ++++++++++++++++++++--------------------- vnext/src/components/Thread.js | 9 +++--- 2 files changed, 34 insertions(+), 37 deletions(-) (limited to 'vnext/src') diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js index 585ae1ac..273e035c 100644 --- a/vnext/src/components/Message.js +++ b/vnext/src/components/Message.js @@ -9,52 +9,50 @@ import Avatar from './Avatar'; import { format } from '../utils/embed'; -export default function Message(props) { - const msg = props.data; - const visitor = props.visitor; +export default function Message({ data, visitor, children, ...rest }) { return (
= 0) }}>
+= 0) }}>
- + {data.photo && +
} - {props.children} + { children }