From 2b15c8c33a5a7b4ac39590f56ecf6d96b377c66d Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Sun, 21 Aug 2016 20:43:53 +0300 Subject: Temporary radio buttons --- index.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'index.js') diff --git a/index.js b/index.js index 25188f6..7b41ca8 100644 --- a/index.js +++ b/index.js @@ -4,6 +4,23 @@ import QRious from 'qrious' import './base.scss' +class SizeRadios extends React.Component { + constructor (props) { + super(props) + this.state = { + selected: props.vals[0] + } + } + + render () { + return
+ {this.props.vals.map((v) => { + return + })} +
+ } +} + class Qrgen extends React.Component { constructor (props) { @@ -37,6 +54,7 @@ class Qrgen extends React.Component { { this.setState(Object.assign({}, this.state, { size: e.target.value })) }}> +

To save the QR code, right-click the image and 'Save Image As', or touch and hold the image on your mobile browser.

-- cgit v1.3.1