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 ++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 32 deletions(-) (limited to 'vnext/src/components/Message.js') 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 (
); } -function Tags(props) { - return props.data && props.data.map(tag => { - return ({tag}) +function Tags({ data, user, ...rest}) { + return data && data.map(tag => { + return ({tag}) }) } -- cgit v1.2.3