From 22b277a4ad9ed7d2892660f3d8ee84b6c09b890b Mon Sep 17 00:00:00 2001 From: or-else Date: Mon, 18 Feb 2019 19:10:16 +0300 Subject: [PATCH] add invitation.jsx widget --- src/widgets/invitation.jsx | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/widgets/invitation.jsx diff --git a/src/widgets/invitation.jsx b/src/widgets/invitation.jsx new file mode 100644 index 00000000..19dd7102 --- /dev/null +++ b/src/widgets/invitation.jsx @@ -0,0 +1,43 @@ +// A single topic or user. +import React from 'react'; +import { FormattedMessage } from 'react-intl'; + +export default class Invitation extends React.PureComponent { + constructor(props) { + super(props); + + this.handleButtonAction = this.handleButtonAction.bind(this); + } + + handleButtonAction(evt, data) { + evt.preventDefault(); + console.log("button clicked", data); + this.props.onAction(data); + } + + render() { + return ( +
+
+ +
+
+ + + +
+
+ ); + } +};