From 204e42494a6af2745b5178f98d26ef0246048780 Mon Sep 17 00:00:00 2001 From: wmwragg Date: Fri, 22 Jul 2016 16:11:42 +0100 Subject: [PATCH] The default props doesn't seem to be working, hardcoded 'LABEL' for now. OnClick closes menu --- src/components/views/elements/Label.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/views/elements/Label.js b/src/components/views/elements/Label.js index 2bfbebc3..2608dd45 100644 --- a/src/components/views/elements/Label.js +++ b/src/components/views/elements/Label.js @@ -29,10 +29,16 @@ module.exports = React.createClass({ return({ label : "LABEL" }); }, + onLabelClick: function() { + if (this.props.onFinished) this.props.onFinished(); + }, + render: function() { return (
- { this.props.label } +
+ LABEL +
); }